Exploring Memory Analysis Views > Exploring the Call Traces View >  Opening the Call Traces View  

Opening the Call Traces View

If you took a snapshot with stack traces during a session, you can view use case and garbage collection data in the Call Traces view.

To open the Call Traces view:

1 In the Snapshot Navigator, right-click the snapshot you want to display and select Open Instances View.

The Instances view displays the object data contained in the snapshot.

2 From the Investigate By drop-down list, choose Use Case Count or Use Case Memory or Dead Count or Dead Memory.

3 Select in the list a class that has data in the Use Case or Dead columns and click the Call Traces toolbar button.

The Call Traces view opens. If the message “Empty Dataset: no matches” appears, either the JVM did not provide traces for the instances, or trace collection was not enabled when the instances were allocated.

The upper panel has two tabs:

• The Merged Traces Tree lists the call tree of the program for the call paths that allocated instances that are still live.

• The Traces Graph displays a call graph of the program for call paths that allocated instances that are still live.

The lower panel displays a list of methods that have allocated live instances during a use case. The data is displayed in the following columns:

Data

Description

Name

For each row, displays the names of the locations that created the objects*. Depending upon how the data is viewed, the name represents method, class or package data.

Cumulative Count

For each row, displays the number of live instances allocated by the location directly or indirectly by calling other methods.

Count

For each row, displays the number of live instances allocated directly by the location.