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.

Not all methods show up

Moderators: Vladimir Kondratyev, Anton Katilin

Not all methods show up

Postby ItsHarry » Tue Nov 10, 2015 6:48 pm

Hello

Perhaps this is not how CPU profiling is supposed to work, but why is it that a lot of methods in my code are not seen in CPU tracing snapshots? For example, I have a Runnable which corresponds to Room$4.java, which I know for a fact is using 50ms on average per invocation (in-code timings). Yet, it does not show up anywhere in the snapshot?

I would like to know how much time exactly is spent in this specific method, and even better would be if I could see exactly which line is spending the most time.

Thanks,
Harry
ItsHarry
 
Posts: 7
Joined: Sat Feb 16, 2013 3:10 pm

Re: Not all methods show up

Postby Anton Katilin » Tue Nov 10, 2015 8:58 pm

Hello Harry

Please try to turn off the filters:
https://www.yourkit.com/docs/java/help/filters.jsp

If you attach the profiler to a running JVM instead of starting it with the profiler agent, some classes may not be immediately reloaded, and old class versions without tracing callbacks may keep running:
https://www.yourkit.com/docs/java/help/attach_agent.jsp

If neither helps, please check whether you see the missing methods with CPU sampling.

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 14 guests