Struct rocksdb::perf::MemoryUsageBuilder
source · pub struct MemoryUsageBuilder { /* private fields */ }
Expand description
Builder for MemoryUsage
Implementations§
source§impl MemoryUsageBuilder
impl MemoryUsageBuilder
sourcepub fn add_db<T: ThreadMode, D: DBInner>(&mut self, db: &DBCommon<T, D>)
pub fn add_db<T: ThreadMode, D: DBInner>(&mut self, db: &DBCommon<T, D>)
Add a DB instance to collect memory usage from it and add up in total stats
sourcepub fn add_cache(&mut self, cache: &Cache)
pub fn add_cache(&mut self, cache: &Cache)
Add a cache to collect memory usage from it and add up in total stats
sourcepub fn build(&self) -> Result<MemoryUsage, Error>
pub fn build(&self) -> Result<MemoryUsage, Error>
Build up MemoryUsage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryUsageBuilder
impl RefUnwindSafe for MemoryUsageBuilder
impl !Send for MemoryUsageBuilder
impl !Sync for MemoryUsageBuilder
impl Unpin for MemoryUsageBuilder
impl UnwindSafe for MemoryUsageBuilder
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