[−][src]Trait memory_db::MemTracker
Used to implement incremental evaluation of MallocSizeOf for a collection.
Provided methods
pub fn on_remove(&mut self, _value: &T)[src]
Update malloc_size_of when a value is removed.
pub fn on_insert(&mut self, _value: &T)[src]
Update malloc_size_of when a value is inserted.
pub fn on_clear(&mut self)[src]
Reset malloc_size_of to zero.
pub fn get_size(&self) -> usize[src]
Get the allocated size of the values.