parity_util_mem::allocators

Trait MallocSizeOfExt

Source
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§

Source

fn malloc_size_of(&self) -> usize

Method to launch a heapsize measurement with a fresh state.

Implementors§