Interpreting ANTS statistics
JMfx
Posts: 2
I've got the output as shown above. But I'm not totally sure how to interpret the Time (sec.) statistic. For example, does line 347 mean that executing that line once takes 0.0008 seconds, or that it takes 0.0008 seconds to execute that line 1121 times (time to execute line * hitcount)?
As for line 339, the same question holds. Also, is this time statistic merely for the reader read method call, or also for the time it takes to complete the while loop. And if the answer is the second option, does this time statistic for line 339 include the time needed to execute the statements in the while loop body (i.e. line 342, 346, 347 and 350)?
Assuming the time statistic for line 339 is line * hitcount, a single reader read method call takes 0.0009 seconds (0.99/ 1122). That doesn't seem that bad to me, does it? So the only way to optimize this section would be to read less lines, right?
One final question: if I have a slow database query, where would this show when profiling using ANTS? Line 335 or line 339?
Comments