pub struct PagerStats {
pub faults: AtomicU64,
pub prewarmed: AtomicU64,
pub port_reinstalls: AtomicU64,
pub forwarded_exceptions: AtomicU64,
}Expand description
Pager statistics — exposed for tracing and unit tests. All counters are monotonic so a test can assert “fault count went up by N”.
Fields§
§faults: AtomicU64Number of fault requests served.
prewarmed: AtomicU64Number of pages pre-warmed at registration.
port_reinstalls: AtomicU64Number of times the pager re-installed its exception port after detecting LLDB drift.
forwarded_exceptions: AtomicU64Number of exceptions forwarded to a prior handler (out-of-region faults).
Implementations§
Source§impl PagerStats
impl PagerStats
Sourcepub fn snapshot(&self) -> PagerStatsSnapshot
pub fn snapshot(&self) -> PagerStatsSnapshot
Snapshot the counters into a plain-data struct for tests / logging.
Trait Implementations§
Source§impl Debug for PagerStats
impl Debug for PagerStats
Source§impl Default for PagerStats
impl Default for PagerStats
Source§fn default() -> PagerStats
fn default() -> PagerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PagerStats
impl RefUnwindSafe for PagerStats
impl Send for PagerStats
impl Sync for PagerStats
impl Unpin for PagerStats
impl UnsafeUnpin for PagerStats
impl UnwindSafe for PagerStats
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