dotMemory 2023.3 Help

Group by Shortest Paths

The Group by Shortest Paths view shows the shortest retention path for the selected object set. If an object is accessible from several roots, dotMemory will show you only one path to the closest root. All other paths are discarded for the sake of simplicity. Use this view to understand how an object is retained in memory. This view is also helpful compared to other retention views as it also shows you field names through which the object is retained.

The list of paths consists of the following columns:

Name

Description

Path

If an object is referenced through the field of other object, then the field name is displayed left to the class name.

Reachable objects count

The number of objects that can be reached from the root.

Bytes

The overall size in bytes of underlying retained objects.

Example

Group by Shortest Paths example

Selecting objects for further analysis

In the Group by Shortest Paths view, you can select the following subjects for further analysis:

To select objects of a specific type

  • Do one of the following:

    • Double-click the type in the list.

    • Right-click the type and choose Open this object set.

    After this, the selected object set is added to the Analysis Path and you can use other object set views to analyze the objects in more details.

To select the objects that are exclusively retained by the analyzed objects set

  • Click the Open retained objects Open objects retained by this set button.

    After this, the Exclusively retained objects subject will be added to the Analysis Path and the list of desired objects will be displayed in the Group by Types view.

Last modified: 11 January 2024