Visual Studio 2008 profiler analysis - missing time

Posted by Scott Vercuski on Stack Overflow See other posts from Stack Overflow or by Scott Vercuski
Published on 2010-03-01T12:31:26Z Indexed on 2010/06/10 21:03 UTC
Read the original article Hit count: 250

I ran the Visual Studio 2008 profiler against my ASP.NET application and came up with the following result set.

CURRENT FUNCTION                                      TIME (msec)
---------------------------------------------------|--------------
Data.GetItem(params)                               |   10,158.12
---------------------------------------------------|--------------

Functions that were called by Data.GetItem(params)    TIME (msec)
---------------------------------------------------|--------------
Model.GetSubItem(params)                           |     0.83
Model.GetSubItem2(params)                          |     0.77
Model.GetSubItem3(params)                          |     0.76
etc.

The issue I'm facing is that the sum of the Functions called by Data.GetItem(params) do not sum up to the 10,158.12 msec total. This would lead me to believe that the bulk of the time is actually spent executing the code within that method.

My question is ... does Visual Studio provide a way to analyze the method itself so I can see which sections of code are taking the longest? if it does not are there any recommended tools to do this? or should I start writing my own timing scripts?

Thank you

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about code-analysis