[squeak-dev] Re: [Vm-dev] Fwd: [Pharo-project] is it possible
to know the memory occupation (bytes) of an object?
andreas.raab at gmx.de
Thu Apr 29 16:00:28 UTC 2010
On 4/29/2010 6:22 AM, Mariano Martinez Peck wrote:
> and then I call it like this for example:
> oop := self firstAccessibleObject.
> [oop = nil] whileFalse: [
> (self isIntegerObject: oop)
> ifFalse: [
> size := self internalByteSize: oop.
> oop := self accessibleObjectAfter: oop.
Do you realize that this simple computes the used memory which is
information that's directly accessible via the vm parameters? I don't
recall which one but you might want to look at these to see if they
already have what you need.
More information about the Squeak-dev