Instance retention graph -> Show all paths to root

Memory profiling for .NET developers

Moderator: dom.smith

Instance retention graph -> Show all paths to root

Postby tdrtech » Thu Jul 24, 2014 3:16 pm

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
tdrtech
 
Posts: 1
Joined: Thu Jul 24, 2014 3:12 pm

Postby jessica.ramos » Fri Jul 25, 2014 5:27 pm

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
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to ANTS Memory Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests