Search code examples
c#wpfants

What is Time and Hit Count in ANTS Profiler


I start to evaluate Red Gate's ANTS Profiler to profile my WPF application.

I read through the online support/documentation and can't seem to find explanation for the basics (and I don't know why they are not in the documentation):

In the profiler, it shows Time and Hit Count of Method. Why is Time has unit of %? Shouldn't it be second? I try to add up all the percentage but they don't add up to 100. The Time with Children has also unit in %, which adds up more than 100%. I cannot tell whether they are time or portion of something.

What is Hit Count? What is "hitting" my application and what hit is being count?

I know I sound very retarded, but without understanding Time and Hit Count I can't being reading the forum or online help.


Solution

  • From the RedGate documentation:

    The following data is shown for each method within the stack trace, for the selected time period:

    Time: the total execution time for the method within this stack trace.

    Time With Children: the total execution time for the method and all its children within this stack trace.

    Hit Count: the number of times the method was called within this stack trace.