In message <20050923134642.64156.qmail / web36106.mail.mud.yahoo.com>, 
Eric Mahurin <eric_mahurin / yahoo.com> writes
>I'd imagine to get a non-portable solution, you'd need
>something in GC/ObjectSpace to figure out how much its objects
>are taking up.

That is what Ruby Memory Validator does. Plus provide lots of view and 
metrics to examine the reference graphs and so on.

Stephen
-- 
Stephen Kellett
Object Media Limited    http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting