What is Time and Hit Count in ANTS Profiler

◇◆丶佛笑我妖孽 提交于 2019-12-05 14:26:02
Matthew Manela

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.

Matthew's earlier answer is correct. To expand on it:

When you view time in percentages, the % time for each method represents the proportion of the total execution time for the selected period that the method contributed.

If you prefer to see time in seconds, click on View, then select Ticks, Milliseconds, or Seconds.

The total time can sum to more than 100% if you have more than one CPU.

The question about hit count is a bit more puzzling - it should indeed show how many times the method was called in the selected time period. If you're sure the hit count you're seeing is higher than it should be, it's probably worth contacting Red Gate support - support@red-gate.com .

I hope this helps!

I haven't done all the calculations, but I think the time % is the average of one "hit" to the method. My guess is when you multiply the hit count with the Time% and sum them up, you get the 100%.

It would be the same with Time With Children but a lot more complex to calculate because you have to take into account many more methods.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!