Trait parity_util_mem::allocators::MallocSizeOfExt
source · [−]pub trait MallocSizeOfExt: MallocSizeOf {
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
fn malloc_size_of(&self) -> usize
fn malloc_size_of(&self) -> usize
Method to launch a heapsize measurement with a fresh state.