From: crb002@... Date: 2007-09-24T01:15:05+09:00 Subject: Object's allocated memory 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.