Exploring Memory Analysis Views > Exploring the Instance Detail View >  Interacting with the Instance Detail View  

Interacting with the Instance Detail View

You can select a new instance and review its tree of referrers or references. In the tree, you can expand and collapse branches. At any time, you can view source code for a class from an instance or allocating method.

The following table summarizes the tasks that you can perform:

Task

Action

Response

Select a new instance

In the instance list, click an instance row.

The Referrers/References tab displays data for the instance.

Expand or collapse a tree or branch

Double-click the Referrer or Reference instance (or click the expand symbol).

If collapsed, the branch is expanded.

If expanded, the branch is collapsed.

View the source code for an allocating method

Select an instance, right-click, and select Allocated At Source.

If you have the source code for the class containing this method, the Source view opens with the code displayed.

Examine an instance and its referrers and references as a directed graph

Select an instance and click the Heap Graph toolbar button.

The Heap Graph opens with the instance selected. In the graph, only the instance, its referrers, and its references are displayed as nodes.

Show/hide table columns

Right-click and select Show/Hide Columns. Select the columns to show and click OK.

The selected columns are displayed. The rest are hidden.

Resize column widths

• To set the width, drag the edge of the column heading left or right.

• To see all data in a column, right-click in the column and select Size <column name> to Fit.

• To fit all columns in the viewing area, right-click and select Size All to Fit.

The columns are resized.

Rearrange columns

Drag a column by its heading and drop it in a new location.

The column appears in its new location.

Sort the table by a metric

Click the column heading for the metric.

The table is sorted. To reverse the sort order, click the heading again.

Export the instance table data to CSV

Right-click in the table and select Export to CSV. Type a file name and click Save.

The file contains the table data separated by a CSV delimiter. It may also contain headers. See also “Changing How JProbe Exports to a CSV File”.