CPU Snapshot

Use to view data on method call chains, times, and invocations. You 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.

The drop-down list provides the following views:

Element Description

Method Level View (default)

Displays results according to the fully-qualified method names.

Class Level View

Aggregates in a single entry the results for all methods of the same class.

Package Level View

Aggregates all methods of classes that belong to the same package.


The tabs display following data:

Element Description

Call Tree

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

Displays the total execution time and number of invocations for each method, irrespective of the context.

Combined

Displays the Call Tree information in the upper part of the window and the Hot Spot data in the lower part.

Info

Displays data on when the snapshot was taken, where it is saved, and the configuration of the profiling session.


Depending on the currently selected view, right-click a profiling result to access the following commands:

Element Description

Go To Source

Loads the source .java file containing the class or method.

Show Subtree

Displays the subtree for the selected method.

Show Back Traces

Displays the back traces for the selected method.

Find in Hot Spots

Displays the selected class or method in the Hot Spots tab.

Find in Call Tree

Displays the selected class or method in the Call Tree tab.

Find in Hot Spots

Adds the selected method to the list of roots available when analyzing application performance.

This command is only available when viewing results in method view.



Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.