JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Key Retention Paths

Last modified: 25 July 2024

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.