Forum Discussion
michaelveloz
14 years agoNew Contributor
I think I'm starting to see the light: I'm only seeing the size of the declared fields in the class - but not the size of the contents of those fields and fields they may contain, etc.
In other words, I'm seeing the "top level" fields allocated but nothing below that.
So if I class declares an integer array, AQTime might show the 4 bytes (or 8 bytes, whatever) that it takes for an instance of that class to hold that reference.. but if that array is initialized to hold a million entires, AQTime isn't going to show that one million as part of the objects size.. it isn't "recursing" down through all the allocations to come up with an "aggregate" size of the object..
Is there a way to get it to do this though?
Michael
In other words, I'm seeing the "top level" fields allocated but nothing below that.
So if I class declares an integer array, AQTime might show the 4 bytes (or 8 bytes, whatever) that it takes for an instance of that class to hold that reference.. but if that array is initialized to hold a million entires, AQTime isn't going to show that one million as part of the objects size.. it isn't "recursing" down through all the allocations to come up with an "aggregate" size of the object..
Is there a way to get it to do this though?
Michael
Related Content
- 4 years agoshubham1