Struct rocksdb::perf::MemoryUsage
source · pub struct MemoryUsage { /* private fields */ }
Expand description
Wrap over memory_usage_t. Hold current memory usage of the specified DB instances and caches
Implementations§
source§impl MemoryUsage
impl MemoryUsage
sourcepub fn approximate_mem_table_total(&self) -> u64
pub fn approximate_mem_table_total(&self) -> u64
Approximate memory usage of all the mem-tables
sourcepub fn approximate_mem_table_unflushed(&self) -> u64
pub fn approximate_mem_table_unflushed(&self) -> u64
Approximate memory usage of un-flushed mem-tables
sourcepub fn approximate_mem_table_readers_total(&self) -> u64
pub fn approximate_mem_table_readers_total(&self) -> u64
Approximate memory usage of all the table readers
sourcepub fn approximate_cache_total(&self) -> u64
pub fn approximate_cache_total(&self) -> u64
Approximate memory usage by cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryUsage
impl RefUnwindSafe for MemoryUsage
impl !Send for MemoryUsage
impl !Sync for MemoryUsage
impl Unpin for MemoryUsage
impl UnwindSafe for MemoryUsage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more