JetBrains Rider 2024.2 Help

Key Retention Paths

The Key Retention Paths view lets you see the key retention paths for an object instance. More specifically, it shows you only paths that differ from each other most significantly. Unlike other retention views that focus on the shortest retention paths, this view highlights the most significant and distinct retention paths without overwhelming you with all possible retention combinations.

For example:

Retained objects example

The Key Retention Paths view for the object D will contain only two paths: A > B > D and E > F > G > D. The path A > C > D will be discarded as it is almost identical to A > B > D.

Use this view to quickly understand the variety of ways objects are retained in memory. Additionally, the Key Retention Paths view can reveal retention paths that might be overlooked by other views, providing deeper insights into memory retention issues.

Example

Key Retention Paths example

Select objects for further analysis

In the Key Retention Paths view, you can select the following subjects for further analysis:

To select a particular instance

  • Do one of the following:

    • Click the instance in the list.

    • Right-click the instance and select Open this instance.

    After this, the Key retention path subject is added to the Analysis Path and you can use specific instance views to analyze the instance in more detail.

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 on the left and the list of desired objects will be displayed in the Group by Types view.

Last modified: 25 July 2024