CPU view (View | CPU) shows CPU consumption details.
The view consists of the following sections:
-
Call tree
Shows a top-down call tree for each thread ("by thread")
or with calls from all threads merged ("all threads together").
The tree is shown based on current filters.
-
Hot spots
Shows methods that consumed the most CPU time.
Methods are shown based on current filters:
- non-filtered methods (typically, methods from the source code of profiled application)
-
filtered methods (typically, methods from standard Java classes and used libraries) that were
directly called from non-filtered methods or are at the top of thread stack trace (
Thread.run()).
-
Method list
Methods are shown based on current filters:
- non-filtered methods (typically, methods from the source code of profiled application)
-
filtered methods (typically, methods from standard Java classes and used libraries) that were
directly called from non-filtered methods or are at the top of thread stack trace (
Thread.run()).
For each method, the list shows its CPU time, its own CPU time and, if recorded, its invocation count.
You can narrow down the list by typing a method name inside the text field.
If method invocation counts were recorded, they are shown in call trees as well. Invocation counts are not cumulative.
You can apply the following actions to the selected method (available from the popup menu as well):
-
CPU | Method Merged Callees (Ctrl+M)- shows the method's merged callees. -
CPU | Method Back Traces (Ctrl+Shift+M)- shows the method's back traces. -
Tools | Open Declaration in IDE Editor (F7)- opens method declaration in IDE editor (see IDE integration).
