Skip Headers
Previous
Previous
 
Next
Next

Looking at Multiple Classes with the Same Name

If the selected type is actually a joined type—that is, multiple classes with the same name but loaded by different class loaders, you can choose to display the individual classes by class loader on the Type Graph. To do so, you need to set the display mode before you add the type.

To configure the graph to show individual classes by class loader:

  1. On the Type Graph, select the mode you want to use for new nodes:

    • To show a single node for the class name, regardless of class loader, click the Join classes button: Depicts overlapping circles containing the letter C

    • To show individual nodes for classes with the same name, click the Split classes button: Depicts a single circle containing the letter C

  2. Click the Trend tab to open it.

  3. Right-click the type you want to display.

    A context menu opens.

  4. Select Add to Type Graph.

  5. Click the Type Graph tab to open it.

    The graph opens. showing the node or nodes.

For more information on class loader support, see "Detecting Leaks from the Trend Tab When Two or More Classes Have the Same Name".