C
crb002
I have an application where I need to sort objects based on their
memory footprint. What is the easiest way to get this information
from Ruby1.6 ? I have no problem with having to call some C functions
to get this info.
The hack Marshal.dump(foo).size() would work, but since this might be
called often I need an elegant solution.
memory footprint. What is the easiest way to get this information
from Ruby1.6 ? I have no problem with having to call some C functions
to get this info.
The hack Marshal.dump(foo).size() would work, but since this might be
called often I need an elegant solution.