Struct jemalloc_ctl::stats::metadata [−][src]
Total number of bytes dedicated to jemalloc
metadata.
This statistic is cached, and is only refreshed when the epoch is
advanced. See the ::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
impl metadata
[src][−]
pub fn mib() -> Result<metadata_mib>
[src][−]
Returns Management Information Base (MIB)
This value can be used to access the key without doing string lookup.
pub fn name() -> &'static Name
[src][−]
Key ::keys::Name
.
impl metadata
[src][−]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,