Log Request time in IIS

2019-08-12 08:29发布

问题:

I am running on a performance issue with ASP.Net 2.0 Application.

A page takes atmost 20+ secs to load in a browser.

I would like to know where the problem is occurring, i.e in browser(rendering) or in server(processing).

Is there a way to log the time taken for each request in IIS 7.5?

Do we need any code in global.asax or filter that do this stuff? I read about integrating MiniProfiler from http://miniprofiler.com/

Not sure will this work for ASP.Net 2.0 web application.

Any suggestion or help?

回答1:

There are several way to profile your code. I suggest you the following ways:

  1. CLR Profiler (Application by microsoft to see the time spent by each function, allocution memory etc ...) for asp and .Net applications

    How use clr profiler

    Download Clr profiler from microsoft

  2. Internet Explorer debug mode

    Simply with the debug window. By pressing "F12" for "Internet Explorer" and then in the onge "Network", click on "start capture". You can see the call to the function / script with time for each call. With exceptions.