pub struct DefEqStats {
pub cache_hits: u64,
pub cache_misses: u64,
pub reduction_steps: u64,
pub delta_reductions: u64,
pub beta_reductions: u64,
pub eta_attempts: u64,
pub equiv_hits: u64,
}Expand description
Statistics for a DefEq check run.
Fields§
§cache_hits: u64Number of cache hits.
cache_misses: u64Number of cache misses.
reduction_steps: u64Number of reduction steps taken.
delta_reductions: u64Number of successful delta reductions.
beta_reductions: u64Number of beta reductions.
eta_attempts: u64Number of eta expansions tried.
equiv_hits: u64Number of equiv-manager hits.
Implementations§
Source§impl DefEqStats
impl DefEqStats
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Compute the cache hit rate in [0, 1].
Sourcepub fn total_cache_accesses(&self) -> u64
pub fn total_cache_accesses(&self) -> u64
Compute total number of cache accesses.
Sourcepub fn total_reductions(&self) -> u64
pub fn total_reductions(&self) -> u64
Compute total number of reductions across all kinds.
Trait Implementations§
Source§impl Clone for DefEqStats
impl Clone for DefEqStats
Source§impl Debug for DefEqStats
impl Debug for DefEqStats
Auto Trait Implementations§
impl Forget for DefEqStats
impl Freeze for DefEqStats
impl Move for DefEqStats
impl RefUnwindSafe for DefEqStats
impl Send for DefEqStats
impl Sync for DefEqStats
impl Unpin for DefEqStats
impl UnsafeUnpin for DefEqStats
impl UnwindSafe for DefEqStats
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