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.

CPU tab, similar output lines

Moderators: Vladimir Kondratyev, Anton Katilin

CPU tab, similar output lines

Postby vortexsny » Sat Oct 07, 2017 2:34 pm

Hi,

When reviewing snapshot, in CPU tab, for certain methods Yourkit shows two almost identical lines. Please see my example. Can you explain it? I used version 2016.02

Method Time (ms) Count
TestClass.foo (TestClass.java:2016) 500 87% 1000
TestClass.methodA (TestClass.java:2016) 240 47% 50
TestClass.methodA (TestClass.java) 260 40% 950

As far as I can tell, 2nd line has higher count. Is it showing compiled code vs interpreted?

Thanks
vortexsny
 
Posts: 1
Joined: Sat Oct 07, 2017 2:31 pm

Re: CPU tab, similar output lines

Postby Anton Katilin » Mon Oct 09, 2017 6:32 am

Hi,

This version is no longer supported. Please use the latest version 2017.02 instead.

Nevertheless, it seems you're using CPU tracing and some method calls where recorded without a line number. This may happen that the line number cannot be obtained in some corner cases, thus calls are associated with entire method. This is not related with compiled vs interpreted code.

How did you enable profiling: did you load the agent on start or did you connect it to a running JVM?

If you reproduce this with the latest version, you may send a snapshot file to support, and we'll try to comment with more detail.

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


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot] and 5 guests