pub struct Snapshot {
pub stage_ns: [u64; 8],
pub lcs_calls: u64,
pub lcs_window_area: u64,
pub corr_run_scans: u64,
pub corr_run_hits: u64,
pub unit_clones: u64,
pub atoms: u64,
pub units: u64,
}Expand description
Snapshot of counters and stage timers. Always available so tests can assert that the no-op path returns zeros when the feature is off.
Fields§
§stage_ns: [u64; 8]Cumulative wall time in nanoseconds per Stage, indexed by the
enum’s discriminant.
lcs_calls: u64Number of LCS invocations across the snapshot window.
lcs_window_area: u64Sum of LCS window areas (n * m) across all invocations.
corr_run_scans: u64Number of correlation-run scans executed.
corr_run_hits: u64Number of correlation-run scans that produced a hit (a matched run).
unit_clones: u64Number of unit clones recorded by the comparer.
atoms: u64Atom count for the most recent compare (0 if none yet).
units: u64Unit count for the most recent compare (0 if none yet).
Implementations§
Trait Implementations§
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Forget for Snapshot
impl Freeze for Snapshot
impl Move for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.