Can CLR Profiler be used for profiling ASP.NET applications?

472 views Asked by At

Can CLR Profiler be used for profiling ASP.NET applications?

2

There are 2 answers

0
Fredrik Mörk On BEST ANSWER

It used to be possible (albeit not quite straight-forward, as I remember it). I have not tried the new one yet, but I would be quite surprised if that one did not handle it as well.

0
Trisped On

Yes, it is possible:

  1. Start the program
  2. Check/Uncheck Allocations and Calls as needed (note: you must have Allocations checked for calls to work).
  3. Verify the Target CLR Version
  4. File>Profile ASP.NET
    Selecting Profile ASP.NET from the menu
  5. Once the IIS server has restarted, load the pages you want profiled.
    Window which shows after IIS restarts and before an ASP.NET page is loaded
  6. Click "KILL ASP.NET" to stop the profile.
    The Kill ASP.NET button
  7. Analyse the output

After you kill the profiler, the start button changes to "Start ASP.NET" so you do not have to go back into the file menu to start the profiling.
Shows the final state of the control