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 tikv_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§
Auto Trait Implementations§
impl Freeze for metadata
impl RefUnwindSafe for metadata
impl Send for metadata
impl Sync for metadata
impl Unpin for metadata
impl UnsafeUnpin for metadata
impl UnwindSafe for metadata
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