Time(ms) for call tree all threads merged

Questions about YourKit Java Profiler
Post Reply
catiatrubiani
Posts: 2
Joined: Fri Oct 22, 2021 10:03 am

Time(ms) for call tree all threads merged

Post by catiatrubiani »

Hi,

one doubt on the meaning of "time(ms)" for call tree all threads merged. We know that it is the time spent in each method, however when we take a snapshot after 3 minutes = 180,000 ms of execution, then we get that "java.lang.Thread.run()" = 913,498 ms. Why? How can it be longer than the profiling time? We do not understand the meaning of such value.

Thanks a lot for any information you can provide us.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Time(ms) for call tree all threads merged

Post by Anton Katilin »

Hello,

The time in all threads merged can be longer that the profiling duration. Time from all threads is accumulated. Wall time of threads running in parallel can naturally exceed the duration. Even when CPU time is measured, several threads can run in parallel on different processors, each of them adds to the CPU time the sum.

Please see https://www.yourkit.com/docs/java/help/times.jsp

Best regards,
Anton
Post Reply