![]() ![]() |
Once you have found a suspected memory leak (a type that is high in growth and is colored red), you investigate the suspected leak further in the Types tab, see Figure 3-5. Before anything is displayed in this tab, you need to start the investigation by selecting a type from the Trend tab, see To Start Further Investigation, and then right-click on the type and select Show Referring Types.
The Types tab offers a view of the relationships between all the types pointing to the type you are investigating. For each type you also see a number, which is the number of instances that point to that type.
This section is divided into the following topics:
The color red (dark) means that the type has a high growth rate (which may or may not be related to a memory leak).
The Instances part of the Types tab opens.
List instances shows you instances of the selected type. The instances shown will only be those that have references to the type indicated by the arrow from the selected type in the above type graph.
The lower half of the tab lists all instances of type A pointing to type B if the instance list is not too large. If the list is too large, the Memory Leak Detector might time out when trying to display the list. You can change the time out setting under Window > Preferences.
The column Data kept alive (bytes) shows how much data a certain instance keeps alive. This data cannot be garbage collected.
Have the Overview part of the window open to see where you are in the graph (see To Get an Overview of the Graph for how to turn on the overview). You can also zoom in/out or re-center the view.
The Instances tab appears (see Figure 3-7).
![]() ![]() |