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