Can CLR Profiler be used for profiling ASP.NET applications?
Can CLR Profiler be used for开发者_如何学运维 profiling ASP.NET applications?
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.
Yes, it is possible:
- Start the program
- Check/Uncheck Allocations and Calls as needed (note: you must have Allocations checked for calls to work).
- Verify the Target CLR Version
- File>Profile ASP.NET
- Once the IIS server has restarted, load the pages you want profiled.
- Click "KILL ASP.NET" to stop the profile.
- 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.
精彩评论