Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

CPU tab, similar output lines

Moderators: Vladimir Kondratyev, Anton Katilin

CPU tab, similar output lines

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


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?

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


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

Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest


YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.