pub fn live_bytes_in_last_gc<VM: VMBinding>(mmtk: &MMTK<VM>) -> usize
Expand description

Return the size of all the live objects in bytes in the last GC. MMTk usually accounts for memory in pages. This is a special method that we count the size of every live object in a GC, and sum up the total bytes. We provide this method so users can compare with used_bytes (which does page accounting), and know if the heap is fragmented. The value returned by this method is only updated when we finish tracing in a GC. A recommended timing to call this method is at the end of a GC (e.g. when the runtime is about to resume threads).