Double hit counts occurring on one line
Published 11 June 2013
ANTS Perfomance Profiler may be showing unrealistic hit counts in the source code window. For instance:
100 ->if (i=o) 200 -> { dosomething(); 100 -> }
It may seem odd that the line with the if statement executes half as often as the code inside the condition. However, this is expected behavior for ANTS Performance Profiler. The curly-brace is a potential breakpoint in the code and therefore, technically, this line executes twice.