pub trait MallocSizeOfExt: MallocSizeOf {
// Provided method
fn malloc_size_of(&self) -> usize { ... }
}
Expand description
Extension methods for MallocSizeOf
trait, do not implement
directly.
It allows getting heapsize without exposing MallocSizeOfOps
(a single default MallocSizeOfOps
is used for each call).
Provided Methods§
Sourcefn malloc_size_of(&self) -> usize
fn malloc_size_of(&self) -> usize
Method to launch a heapsize measurement with a fresh state.