pub struct CacheStatistics {
pub whnf_hits: u64,
pub whnf_misses: u64,
pub whnf_hit_rate: f64,
pub defeq_hits: u64,
pub defeq_misses: u64,
pub defeq_hit_rate: f64,
pub infer_hits: u64,
pub infer_misses: u64,
pub infer_hit_rate: f64,
}Expand description
Statistics for all caches.
Provides comprehensive metrics for monitoring cache performance across all cache types.
Fields§
§whnf_hits: u64Number of hits in the WHNF cache.
whnf_misses: u64Number of misses in the WHNF cache.
whnf_hit_rate: f64Hit rate percentage for the WHNF cache (0.0-100.0).
defeq_hits: u64Number of hits in the DefEq cache.
defeq_misses: u64Number of misses in the DefEq cache.
defeq_hit_rate: f64Hit rate percentage for the DefEq cache (0.0-100.0).
infer_hits: u64Number of hits in the Infer cache.
infer_misses: u64Number of misses in the Infer cache.
infer_hit_rate: f64Hit rate percentage for the Infer cache (0.0-100.0).
Implementations§
Source§impl CacheStatistics
impl CacheStatistics
Sourcepub fn total_hits(&self) -> u64
pub fn total_hits(&self) -> u64
Get total hits across all caches
Sourcepub fn total_misses(&self) -> u64
pub fn total_misses(&self) -> u64
Get total misses across all caches
Sourcepub fn overall_hit_rate(&self) -> f64
pub fn overall_hit_rate(&self) -> f64
Get overall hit rate across all caches
Trait Implementations§
Source§impl Clone for CacheStatistics
impl Clone for CacheStatistics
Source§fn clone(&self) -> CacheStatistics
fn clone(&self) -> CacheStatistics
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 moreAuto Trait Implementations§
impl Freeze for CacheStatistics
impl RefUnwindSafe for CacheStatistics
impl Send for CacheStatistics
impl Sync for CacheStatistics
impl Unpin for CacheStatistics
impl UnsafeUnpin for CacheStatistics
impl UnwindSafe for CacheStatistics
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