Retained Size

Questions about YourKit .NET Profiler
Post Reply
TimBailey
Posts: 1
Joined: Tue Aug 30, 2011 3:10 pm

Retained Size

Post by TimBailey »

I've read the post about "Retained Sizes" (http://www.yourkit.com/docs/net30/help/ ... /sizes.jsp) but cannot understand why the retained size of the parent class in the diagram is much more than the retained sizes of its items. Please look at the image below. Can you help me understand what this means.

(You need to click the image to see the Retained size column.....)
Image

Many thanks
Tim
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Retained Size

Post by Anton Katilin »

Hello Tim

You watch the object explorer:
http://www.yourkit.com/docs/net50/help/ ... plorer.jsp

It shows how objects refer to other objects via their fields.

What is shown is references from one object to another. If an object refers another object, it does not necessarily retain it. That's why the numbers must not sum.

If you want to see which objects are retained from selected objects:
- Use popup menu item "View | Retained Objects" (Shift+F4) -> a new tab will open
- Switch to "Biggest objects/Dominators": http://www.yourkit.com/docs/net50/help/ ... bjects.jsp

Best regards,
Anton
Post Reply