pub struct NoJemallocStats;Expand description
No-op source used when the binary does not install jemalloc as
the global allocator. All readings are zero, which the tick log
distinguishes from real-but-tiny readings via the surrounding
cache_bytes_current / rss_bytes context.
Trait Implementations§
Source§impl JemallocStatsSource for NoJemallocStats
impl JemallocStatsSource for NoJemallocStats
Source§fn read(&self) -> JemallocStats
fn read(&self) -> JemallocStats
Read the current stats. Implementations are free to cache the
epoch handle, but should call
epoch.advance (or equivalent)
before reading so the returned values reflect the current
state and not the values from the previous epoch.Auto Trait Implementations§
impl Freeze for NoJemallocStats
impl RefUnwindSafe for NoJemallocStats
impl Send for NoJemallocStats
impl Sync for NoJemallocStats
impl Unpin for NoJemallocStats
impl UnsafeUnpin for NoJemallocStats
impl UnwindSafe for NoJemallocStats
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