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.....)
Many thanks
Tim
Retained Size
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Retained Size
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
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