How can we help you today? How can we help you today?
Andrew H
You might be seeing a particularly suboptimal case for the profiler, although this is fairly unlikely. There are a few differences with the way ANTS 4 profilers from ANTS 3: We measure method-level performance for all methods by default, whereas ANTS 3 only instruments methods with source. Normally we'll still execute code many times faster than ANTS 3 as the method-level instrumentation is vastly faster in ANTS 4, but if you've got a piece of software where the ratio of method calls between methods with and without source is sufficiently high you might find that something appears to run more slowly. ANTS 4 still has the option to only instrument methods with source, so you might try that. During startup when line-level timings are turned on we do increase the amount of work the JIT has to do, which will slow things down the first time code is executed. Normally this isn't hugely significant but some types of code can require large amounts of instrumentation, and we've changed the way this works from ANTS 3. You can discover if this is happening by looking at the all methods tab and seeing where the JIT appears and what percentage time it takes. With line-level timing turned off, the JIT time is not significantly impacted. There would probably have to be something unusual about your code to make a large difference compared to ANTS 3, though. Finally, you may be using code where function inlining has a significant effect on the timings. We normally turn function inlining off in order to give the most complete picture of what the process was doing, but you can re-enable it through the options dialog. Methods that are inlined still appear in the call tree but we can't collect hit counts or line-level data for them. The kinds of methods that are candidates for inlining are also the kinds where adding timing instrumentation can have a disproportionately large effect on their execution time. / comments
You might be seeing a particularly suboptimal case for the profiler, although this is fairly unlikely. There are a few differences with the way ANTS 4 profilers from ANTS 3: We measure method-level...
0 votes