dotMemory 2017.1 Help

Group by Shortest Path

The Group by Shortest Path view shows you the shortest retention path for the selected object set. If an object is accessible from a number of roots, dotMemory will show you only one path to the closest root. All other paths are discarded in sake of simplicity. Use this view to quickly understand how an object is retained in memory. This view is especially useful comparing 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:

NameDescription
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

/help/img/dotnet/2017.1/shortest_path_2.png

What Can I Analyze Next?

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

  • Objects of a certain type
    To select objects of a specific type, double click on it in the list. Another way to do it is the context menu: right-click on the interested object set and choose Open this object set. After this, the selected object set will be added to the Analysis Path and you can use other dotMemory views to analyze the set in more details.

  • Retained objects
    To see what objects are exclusively retained by objects of a certain type, right-click on the type in the list and choose Open objects retained by this set. After this, the Retained objects subject will be added to the Analysis Path and the list of retained objects will be displayed in the Type List view.
Last modified: 24 August 2017

See Also