Note that ObjectSpace.memsize_of() can return wrong size
information. For example, if string objects shared the buffer
with others, it returns some strange information. Also T_DATA
(data typs defined by C-extensions) may not return its size
information.
ObjectSpace.memsize_of(o) returns memory size information of the object o. This patch shows the total memsize with object counts for each classes.
Total memsize info are in parenthesises.
Note that ObjectSpace.memsize_of() can return wrong size information. For example, if string objects shared the buffer with others, it returns some strange information. Also T_DATA (data typs defined by C-extensions) may not return its size information.
Note2: The output seems too bad...