CPU tab, similar output lines

Questions about YourKit Java Profiler
Post Reply
vortexsny
Posts: 1
Joined: Sat Oct 07, 2017 2:31 pm

CPU tab, similar output lines

Post by vortexsny »

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
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: CPU tab, similar output lines

Post by Anton Katilin »

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
Post Reply