I'm starting to explore performance profiler in VS 2010 and having a hard time finding it useful. I realize this is most likely because I'm not familiar with the tool.
What I'm looking for is a way to identify the most time consuming method calls. A lot of the times it will just identify ASP.NET methods as the worst offenders, like ProcessRequest and etc. and its hard to narrow it down to the actual method that is taking so long.
I would like to just identify the calls within my code that are taking the longest to execute.
Any pointers would be appreciated. Thanks!
I know this is an old question, but a few tips which I hope will help you or others:
Starting with Profiler paused.
This allows you to just profile the single page you want to focus on, and cut out the noise from the application firing up, home page loading, navigating to what you want to profile, etc.
Finding the bottlenecks using the 'Hot Path'
Interpreting the data
From this you should at least be able to identify where any bottlenecks in performance are, and why they are happening. Often, the next challenge is to come up with a more refined way of achieving the same result with less calls to time-consuming functions, database calls, IO operations, etc.
I hope this helps as a starter for you or others who come across this (common) question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With