pub struct ReducerStats {
pub whnf_calls: u64,
pub cache_hits: u64,
pub beta_count: u64,
pub delta_count: u64,
pub iota_count: u64,
pub zeta_count: u64,
pub nat_lit_count: u64,
}Expand description
Statistics about reduction performance.
Fields§
§whnf_calls: u64Number of WHNF calls.
cache_hits: u64Number of cache hits.
beta_count: u64Number of beta reductions performed.
delta_count: u64Number of delta reductions performed.
iota_count: u64Number of iota reductions performed.
zeta_count: u64Number of zeta reductions performed.
nat_lit_count: u64Number of nat literal reductions.
Implementations§
Source§impl ReducerStats
impl ReducerStats
Sourcepub fn total_reductions(&self) -> u64
pub fn total_reductions(&self) -> u64
Compute the total reduction count.
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Cache hit rate as a fraction.
Trait Implementations§
Source§impl Clone for ReducerStats
impl Clone for ReducerStats
Source§fn clone(&self) -> ReducerStats
fn clone(&self) -> ReducerStats
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 ReducerStats
impl Debug for ReducerStats
Source§impl Default for ReducerStats
impl Default for ReducerStats
Source§fn default() -> ReducerStats
fn default() -> ReducerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReducerStats
impl RefUnwindSafe for ReducerStats
impl Send for ReducerStats
impl Sync for ReducerStats
impl Unpin for ReducerStats
impl UnsafeUnpin for ReducerStats
impl UnwindSafe for ReducerStats
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