I am using VisualVM
to see where my application is slow. But it does not show all methods, probably does not show all methods that delays the application.
Other than the filters mentioned by Ryan Stewart, here are a couple of additional reasons why methods may not appear in the profiler:
I had the same problem with my pet project. I added a package
name and the problem is solved. I don't understand why. VisualVM 1.4.1
, jdk1.8.0_181
and jdk-10.0.2
, Windows 10
I don't have it in front of my at the moment, but before you start profiling, there's a settings pane that's hidden by default and lets you enter regexes for filtering out methods. By default, it filters out a lot of the core JDK stuff.