shredder icon indicating copy to clipboard operation
shredder copied to clipboard

Heap size measurement

Open wusyong opened this issue 2 years ago • 0 comments

First of all, thanks for building this crate! I found this crate is pretty great and GC types are ergonomic that I don't need to worry too much. The issue I encounter is I wish to get the heap size that GC controls to determine my context's workload. number_of_active_handles and number_of_tracked_allocations don't seem enough because there are various of types. Maybe we could define some traits to get the size of each GC objects like servo's malloc_size_of does?

wusyong avatar Jun 29 '22 11:06 wusyong