pub struct Stamp {
pub wall_ns: u64,
pub cpu_ns: u64,
pub sampled_until_ns: u64,
pub allocation: Snapshot,
pub prefix_paths: PrefixPathDiagnostics,
pub traffic: TrafficSnapshot,
}Expand description
Ordered clock reads followed by a process-wide requested-allocation snapshot.
The two monotonic reads bracket the CPU read only. The allocation ledger is read afterwards and is neither clock-bracketed nor an atomic transaction.
Fields§
§wall_ns: u64Opening CLOCK_MONOTONIC reading in nanoseconds, with no civil-time epoch.
cpu_ns: u64CLOCK_PROCESS_CPUTIME_ID nanoseconds consumed by all process threads.
sampled_until_ns: u64Closing CLOCK_MONOTONIC reading after the CPU clock read.
allocation: SnapshotCumulative ledger read after sampled_until_ns; not a phase-local peak.
prefix_paths: PrefixPathDiagnosticsThread-local prefix traffic sampled after the clock and allocation reads.
traffic: TrafficSnapshotExisting constructor/cache counters, copied without allocating.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Stamp
impl Freeze for Stamp
impl Move for Stamp
impl RefUnwindSafe for Stamp
impl Send for Stamp
impl Sync for Stamp
impl Unpin for Stamp
impl UnsafeUnpin for Stamp
impl UnwindSafe for Stamp
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