Friday, 27 September 2013

How many seconds does a "sample" represent in the profiler?

How many seconds does a "sample" represent in the profiler?

In the Visual Studio Profiler, there is an option to use a "sampling"
method of profiling which can be used on my ASP.NET MVC app:
The sampling profiling method of the Visual Studio Profiling Tools
interrupts the computer processor at set intervals and collects the
function call stack. A call stack is a dynamic structure that stores
information about the functions that are executing on the processor.
This allows me to get a rough indication of what code is taking the
longest to execute. However, I am not sure how much time each sample value
represents. Is 3,441 34.41 seconds? Maybe there is no pure conversion to a
time measurement. If so, can someone explain why? The documentation claims
that there are set intervals, but does not elaborate on how long each
interval lasts.

No comments:

Post a Comment