Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Retained Size

Moderators: Vladimir Kondratyev, Anton Katilin

Retained Size

Postby TimBailey » Tue Aug 30, 2011 3:20 pm

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
TimBailey
 
Posts: 1
Joined: Tue Aug 30, 2011 3:10 pm

Re: Retained Size

Postby Anton Katilin » Tue Aug 30, 2011 3:45 pm

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
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 5 guests

cron