From: Robert Dober Date: 2008-06-18T02:23:19+09:00 Subject: Re: Can I find out the memory used by an object? On Tue, Jun 17, 2008 at 5:53 PM, Robert Klemme wrote: > On 17 Jun., 12:42, Marc Heiler wrote: >> Good question :) >> I think it could be defined, however I do not know if this is useful, maybe when considering running on low memeory devices and a deterministic garbage collector. I would define the memory to be used by an object as the number of bytes that have been (re)allocated for it and that could be freed by the GC if there were no more references to that object. I would not care at all if collecting this object makes other objects collectable. This however is where Robert's probably right, if you have to worry over memory consumption than you have to pretty much sure about releasability of other objects too. But I disagree humbly with my homonym that the question does not make sense at all ;). Cheers Robert -- http://ruby-smalltalk.blogspot.com/ --- As simple as possible, but not simpler. Albert Einstein