pub struct Stats {Show 16 fields
pub allocs: u64,
pub frees: u64,
pub generic: u64,
pub pages_fresh: u64,
pub segments: u64,
pub huge_allocs: u64,
pub extends: u64,
pub large_allocs: u64,
pub pages_retired: u64,
pub segments_freed: u64,
pub realloc_in_place: u64,
pub realloc_moved: u64,
pub delayed_frees: u64,
pub reclaims: u64,
pub guarded: u64,
pub purges: u64,
}Expand description
Always-on counters (plan §7.5 instrument #2): the primary evidence for sub-1% bricks and the work-parity check for every A/B.
Fields§
§allocs: u64Successful allocations.
frees: u64Frees.
generic: u64Entries into the generic (slow) path.
pages_fresh: u64Pages freshly carved.
segments: u64Normal segments reserved from the OS.
huge_allocs: u64Huge (dedicated-segment) allocations.
extends: u64Free-list extensions performed.
large_allocs: u64Large (in-segment span) allocations.
pages_retired: u64Pages retired (span returned to the segment).
segments_freed: u64Empty segments returned to the OS.
realloc_in_place: u64Reallocs resolved in place (no move).
realloc_moved: u64Reallocs that moved the block.
delayed_frees: u64Blocks processed off the delayed (cross-thread) list.
reclaims: u64Abandoned segments adopted from dead threads.
guarded: u64Guarded objects handed out (secure/guarded builds).
purges: u64Page-sized ranges purged (decommitted/reset) back to the OS.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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