Not all methods show up

Questions about YourKit Java Profiler
Post Reply
ItsHarry
Posts: 7
Joined: Sat Feb 16, 2013 3:10 pm

Not all methods show up

Post by ItsHarry »

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

Re: Not all methods show up

Post by Anton Katilin »

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