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
Not all methods show up
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Not all methods show up
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
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