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§fn clone(&self) -> DefEqStats
fn clone(&self) -> DefEqStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefEqStats
impl Debug for DefEqStats
Source§impl Default for DefEqStats
impl Default for DefEqStats
Source§fn default() -> DefEqStats
fn default() -> DefEqStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze 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