Jinsight Reference Manual

Reference Pattern View

Call Tree View
 Purpose · Elements · Interpretation · Tracing Considerations · Related Views

next: ElementsPurpose

Shows patterns of references in varying detail to or from a set of objects; this is useful for studying data structures and finding memory leaks.  This view requires a trace containing object reference information, as described in Tracing Considerations.

next: InterpretationElements

See also Using Slices in the Reference Pattern View for a discussion of the effect of workspace filtering on this view.

next: Tracing ConsiderationsInterpretation

next: Related ViewsTracing Considerations

The trace must contain object reference information.  To record this information, issue one of the object reference snapshot commands during trace creation.  You may forgo all execution tracing (method calls and object population), and just dump the object population and reference information at the desired point; this will make the trace much smaller.  Just issue the dr command at the > prompt when you want to take the snapshot.

If you suspect a memory leak related to a particular activity in your application, you should introduce a generation boundary, using the dump population tracing command (Ctrl-Brk dp), prior to invoking the target activity.  Then issue a Ctrl-Brk dr command after the target activity completes to take the snapshot of references. 

 

next: bottom of pageRelated Views

The Object Histogram view also offers the ability to examine and explore object references, and it is much simpler to use in that regard.  But it is far less powerful than this view because it does not summarize references, and they tend to be scattered among far-flung objects.  The Object Histogram view is better for viewing small numbers of references as a side activity when studying object populations and their cumulative attributes over time.

Once you have selected an object in this view, you can use the the Execution Pattern view to study the interactions that produced the object's references.

See also Understanding memory usage and data structures in the Jinsight How-To Guide.


Call Tree View
Jinsight Home