Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Garbage Collector overhead

Moderators: Vladimir Kondratyev, Anton Katilin

Garbage Collector overhead

Postby kohlerm » Fri Jan 27, 2012 8:06 am

Hi,
In sampling mode do the time reported for a method include GC time if a GC happened during the execution of the method?
I assume for tracing mode thats the case, correct?

Regards,
Markus
kohlerm
 
Posts: 5
Joined: Mon Sep 19, 2005 11:47 am

Re: Garbage Collector overhead

Postby Anton Katilin » Fri Jan 27, 2012 10:25 am

Hello Markus

It depends on what kind of time is measured for particular method, CPU time or wall time:
http://www.yourkit.com/docs/net60/help/times.jsp

In case of CPU time sampler accounts each thread CPU time spent since previous sample. If thread did not use CPU between samples (e.g. it was paused) nothing will be added.

In case of wall time method time will be increased with the time elapsed since previous sample. So, if there was a pause due to e.g. GC it will be included.

Similar for tracing.

Best regards,
Anton
Anton Katilin
 
Posts: 5574
Joined: Wed Aug 11, 2004 8:37 am

Re: Garbage Collector overhead

Postby kohlerm » Fri Jan 27, 2012 11:11 am

Thanks Anton!
Regards,
Markus
kohlerm
 
Posts: 5
Joined: Mon Sep 19, 2005 11:47 am


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 3 guests

cron