0

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

valiano
  • 16,433
  • 7
  • 64
  • 79
palm snow
  • 2,392
  • 4
  • 29
  • 49
  • 2
    [MSDN: Profiling ASP.NET Applications with CLR](http://msdn.microsoft.com/en-us/library/ff650691.aspx#scalenethowto13_topic5) – Tim Schmelter Mar 03 '11 at 21:47
  • +1 This is what I was looking for however I don't know how can I mark this one as Answer. There is no check icon with it. – palm snow Mar 08 '11 at 20:23

2 Answers2

1

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

Trisped
  • 5,705
  • 2
  • 45
  • 58
1

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.

Fredrik Mörk
  • 155,851
  • 29
  • 291
  • 343