CPU Snapshot
See Also
A CPU snapshot captures data on method call chains, times and invocations.
You can take a CPU snapshot when you are analyzing application performance.
The snapshot is displayed in the main editor window.
You can use the dropdown list in the toolbar to change the granularity of the displayed results.
- Method Level View (default) - Results are displayed according to the fully-qualified method names.
- Class Level View - results for all methods of the same class are aggregated in a single entry.
- Package Level View - all methods of classes that belong to the same package are aggregated.
The snapshot contains the following tabs:
- Call Tree. This tab displays a call tree showing the method call chain and the time/number
of invocations for executing threads and methods in each context. (A context is a unique
chain of method calls leading to the method's invocation.)
- Hot Spots. This tab shows the total execution time and number of
invocations for each method, irrespective of the context.
- Combined. This tab displays the Call Tree information in the upper
part of the window and the Hot Spot data in the lower part.
- Info. This tab displays data on when the snapshot was taken, where it is saved, and the
configuration of the profiling session.
Exploring the results
Depending on the currently selected view, you can right-click a profiling
result to access the following commands:
- Go To Source. Select this to load the source .java file containing the class or method.
- Show Subtree. Select this to display the subtree for the selected method.
- Show Back Traces. Select this to display the back traces for the selected method.
- Find in Hot Spots. Select this to display the selected class or method in the Hot Spots tab.
- Find in Call Tree. Select this to display the selected class or method in the Call Tree tab.
- Add to Instrumentation Roots. Select this to add the selected method to the list of roots available
when analyzing application performance.
This command is only available when viewing results in method view.
- See Also
- Taking a Snapshot
- Snapshots
- Analyzing Performance
- Viewing Profiling Results
Legal
Notices