Trait malloc_size_of::MallocSizeOf
source · pub trait MallocSizeOf {
// Required method
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize;
}
Expand description
Trait for measuring the “deep” heap usage of a data structure. This is the most commonly-used of the traits.
Required Methods§
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
Implementations on Foreign Types§
source§impl MallocSizeOf for bool
impl MallocSizeOf for bool
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for char
impl MallocSizeOf for char
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for f32
impl MallocSizeOf for f32
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for f64
impl MallocSizeOf for f64
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for i8
impl MallocSizeOf for i8
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for i16
impl MallocSizeOf for i16
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for i32
impl MallocSizeOf for i32
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for i64
impl MallocSizeOf for i64
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for i128
impl MallocSizeOf for i128
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for isize
impl MallocSizeOf for isize
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for str
impl MallocSizeOf for str
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for u8
impl MallocSizeOf for u8
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for u16
impl MallocSizeOf for u16
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for u32
impl MallocSizeOf for u32
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for u64
impl MallocSizeOf for u64
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for u128
impl MallocSizeOf for u128
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for ()
impl MallocSizeOf for ()
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for usize
impl MallocSizeOf for usize
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for String
impl MallocSizeOf for String
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for NonZeroU32
impl MallocSizeOf for NonZeroU32
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for NonZeroUsize
impl MallocSizeOf for NonZeroUsize
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<f32>
impl MallocSizeOf for Range<f32>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<f64>
impl MallocSizeOf for Range<f64>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<i8>
impl MallocSizeOf for Range<i8>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<i16>
impl MallocSizeOf for Range<i16>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<i32>
impl MallocSizeOf for Range<i32>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<i64>
impl MallocSizeOf for Range<i64>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<isize>
impl MallocSizeOf for Range<isize>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<u8>
impl MallocSizeOf for Range<u8>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<u16>
impl MallocSizeOf for Range<u16>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<u32>
impl MallocSizeOf for Range<u32>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<u64>
impl MallocSizeOf for Range<u64>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Range<usize>
impl MallocSizeOf for Range<usize>
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for AtomicBool
impl MallocSizeOf for AtomicBool
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for AtomicIsize
impl MallocSizeOf for AtomicIsize
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for AtomicUsize
impl MallocSizeOf for AtomicUsize
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Duration
impl MallocSizeOf for Duration
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Instant
impl MallocSizeOf for Instant
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for SystemTime
impl MallocSizeOf for SystemTime
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for AddressWithSpace
impl MallocSizeOf for AddressWithSpace
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for AllChainID
impl MallocSizeOf for AllChainID
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for H160
impl MallocSizeOf for H160
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for H256
impl MallocSizeOf for H256
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for H512
impl MallocSizeOf for H512
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for Space
impl MallocSizeOf for Space
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for U256
impl MallocSizeOf for U256
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl MallocSizeOf for U512
impl MallocSizeOf for U512
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
source§impl<'a, B: ?Sized + ToOwned> MallocSizeOf for Cow<'a, B>where
B::Owned: MallocSizeOf,
impl<'a, B: ?Sized + ToOwned> MallocSizeOf for Cow<'a, B>where
B::Owned: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<K, V, S> MallocSizeOf for HashMap<K, V, S>
impl<K, V, S> MallocSizeOf for HashMap<K, V, S>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<K, V, S> MallocSizeOf for HashMap<K, V, S>
impl<K, V, S> MallocSizeOf for HashMap<K, V, S>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T1, T2> MallocSizeOf for (T1, T2)where
T1: MallocSizeOf,
T2: MallocSizeOf,
impl<T1, T2> MallocSizeOf for (T1, T2)where
T1: MallocSizeOf,
T2: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T1, T2, T3> MallocSizeOf for (T1, T2, T3)
impl<T1, T2, T3> MallocSizeOf for (T1, T2, T3)
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T1, T2, T3, T4> MallocSizeOf for (T1, T2, T3, T4)
impl<T1, T2, T3, T4> MallocSizeOf for (T1, T2, T3, T4)
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T> MallocSizeOf for PhantomData<T>
impl<T> MallocSizeOf for PhantomData<T>
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize
source§impl<T> MallocSizeOf for SmallVec<[T; 32]>where
T: MallocSizeOf,
impl<T> MallocSizeOf for SmallVec<[T; 32]>where
T: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T, S> MallocSizeOf for HashSet<T, S>
impl<T, S> MallocSizeOf for HashSet<T, S>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T: MallocSizeOf + Copy> MallocSizeOf for Cell<T>
impl<T: MallocSizeOf + Copy> MallocSizeOf for Cell<T>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T: MallocSizeOf + ?Sized> MallocSizeOf for Box<T>
impl<T: MallocSizeOf + ?Sized> MallocSizeOf for Box<T>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T: MallocSizeOf> MallocSizeOf for Option<T>
impl<T: MallocSizeOf> MallocSizeOf for Option<T>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T: MallocSizeOf> MallocSizeOf for [T]
impl<T: MallocSizeOf> MallocSizeOf for [T]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T: MallocSizeOf> MallocSizeOf for BinaryHeap<T>
impl<T: MallocSizeOf> MallocSizeOf for BinaryHeap<T>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T: MallocSizeOf> MallocSizeOf for VecDeque<T>
impl<T: MallocSizeOf> MallocSizeOf for VecDeque<T>
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl<T: MallocSizeOf> MallocSizeOf for Arc<T>
impl<T: MallocSizeOf> MallocSizeOf for Arc<T>
This is only for estimating memory size in Cache Manager