Struct jemalloc_ctl::stats::metadata
source · [−]pub struct metadata;Expand description
Total number of bytes dedicated to jemalloc metadata.
This statistic is cached, and is only refreshed when the epoch is
advanced. See the crate::epoch type for more information.
This corresponds to stats.metadata in jemalloc’s API.
Examples
use jemalloc_ctl::{epoch, stats};
let e = epoch::mib().unwrap();
let metadata = stats::metadata::mib().unwrap();
e.advance().unwrap();
let size = metadata.read().unwrap();
println!("{} bytes of jemalloc metadata", size);Implementations
sourceimpl metadata
impl metadata
sourcepub fn mib() -> Result<metadata_mib>
pub fn mib() -> Result<metadata_mib>
Returns Management Information Base (MIB)
This value can be used to access the key without doing string lookup.
sourcepub fn name() -> &'static Name
pub fn name() -> &'static Name
Key crate::keys::Name.
Auto Trait Implementations
impl RefUnwindSafe for metadata
impl Send for metadata
impl Sync for metadata
impl Unpin for metadata
impl UnwindSafe for metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more