Exploring Memory Analysis Views > Exploring the Instance Detail View > Understanding the Instance Detail View
The Instance Detail view has two panels. The upper panel displays a list of instances collected during the use case. The bottom panel has two tabs. One displays the referrers and references for the selected instance; the other displays the allocation stack trace.
The upper panel contains the following data about each occurrence of an instance:
The amount of memory that would be released if the object is removed |
|
The method that allocated the instance or the package for the class containing the allocating method. |
The instance selected in the instance list forms the root of the Referrer tree. By expanding the branches, you can discover the path of references that attaches this instance to a live object and, ultimately, to the root set.
Loitering objects are caused by a live object inadvertently or unnecessarily retaining a reference to the loiterer for some period of time. To allow the garbage collector to remove a loitering object—and all its descendants—you must remove all references to the loiterer. When you locate your loiterer, you can look at the Reference panel to see how many objects a loiterer anchors.
The Referrer tree provides the following information:
The instance that is referring to the instance that you are investigating |
|
The field in the referring instance that refers to the referenced instance |
The Reference tree provides the following information:
The field in the referring instance that refers to the referenced instance |
|
The name of the field that references the instance in the tree |
The Allocated Stack Trace table contains information about the instance selected in the instance list. If class file contained line and source information, the class name and line number for the allocating code appear in the Source column.
Note In order for Traces to be available, you must have collected trace information during your use case.
The Allocation Stack Trace tab contains the following data:
Class and method names for the methods that allocated instances of the selected class |
|
The name of the class file and the line number of the method |