Instance retention graph -> Show all paths to root

tdrtechtdrtech Posts: 2
edited July 25, 2014 12:27PM in ANTS Memory Profiler 8
Hello,

The instance retention graph only shows the shortest path to a root node. This is also documented:

"The instance retention graph only shows the shortest chain of references from each GC root to your selected object. When you break this chain of references, the object may still be kept in memory by a longer chain of references.
After you have modified your code to break the first chain of references, profile your application again; the instance retention graph updates to show the chain of references which is now the shortest chain. You will need to modify your code again, to break this chain of references, and repeat until all the chains of references are broken and the object is no longer in memory.
"

However, I would like to see all paths that lead from a node to a root node. Is that possible?

Regards

Comments

  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi there,

    Thanks for your post!

    >> However, I would like to see all paths that lead from a node to a root node. Is that possible?

    It's not possible with the instance retention graph for individual instances of an object, I'm afraid, but have you tried looking at the instance categorizer?

    There's an "All references view" that you might find useful - http://documentation.red-gate.com/displ ... ategorizer

    Kind regards,

    Jessica Ramos

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.