heap_dump icon indicating copy to clipboard operation
heap_dump copied to clipboard

show objects size

Open kostya opened this issue 11 years ago • 1 comments

Is it possible to add bytesize for each object in the dump?

kostya avatar Jan 07 '13 01:01 kostya

For most objects this has no meaning because they are allocated in fixed-size slots (size of Rvalue is usually 40 bytes). Additional c-level heap memory is only allocated for large containers(but they only store references, not the objects), T_DATA(these already have this additional size in dump) and sometimes for tables in instances and classes

So this can be useful only for tracking such cases. I'll consider adding sizes for allocated memory where possible But because of fragmentation these sizes for most objects do not represent exact memory usage. Actually for determining "priority leaks" you can use string length of dump entries as a metric.

Vasfed avatar Jan 07 '13 10:01 Vasfed