Struct concread::arcache::CacheStats
source · [−]pub struct CacheStats {Show 17 fields
pub reader_ops: u64,
pub reader_hits: u64,
pub reader_tlocal_hits: u64,
pub reader_tlocal_includes: u64,
pub reader_includes: u64,
pub reader_failed_includes: u64,
pub write_read_ops: u64,
pub write_hits: u64,
pub write_includes: u64,
pub write_modifies: u64,
pub shared_max: u64,
pub freq: u64,
pub recent: u64,
pub freq_evicts: u64,
pub recent_evicts: u64,
pub p_weight: u64,
pub all_seen_keys: u64,
}
Expand description
Statistics related to the Arc
Fields
reader_ops: u64
The number of attempts to read from the cache
reader_hits: u64
The number of hits during all read operations on the primary cache.
reader_tlocal_hits: u64
The number of hits during all read operations on the thread local caches. If thread local storage is disabled, this will always be 0. This is measured in seperately to a reader hit - either we hit the main cache, or the tlocal, never both.
reader_tlocal_includes: u64
The number of inclusions to the thread local storage. If thread local storage is disabled, this will always be 0. This is measured in addition to reader async inclusions.
reader_includes: u64
The number of successful async main cache inclusions through read operations.
reader_failed_includes: u64
The number of failed async main cache inclusions through read operations.
write_read_ops: u64
The number of attempts to read from the write cache
write_hits: u64
The number of cache hits during all write operations.
write_includes: u64
The number of inclusions through write operations. This does NOT track updates to the main cache, where the updates may change the value.
write_modifies: u64
The number of modifications to the cache content during a write. This does NOT track inclusions, where includes add a new value.
The maximum number of items in the shared cache.
freq: u64
The number of items in the frequent set at this point in time.
recent: u64
The number of items in the recent set at this point in time.
freq_evicts: u64
The number of items evicted from the frequent over all time.
recent_evicts: u64
The number of items evicted from the recent set over all time.
p_weight: u64
The current cache weight between recent and frequent.
all_seen_keys: u64
The number of total keys seen through the cache’s lifetime.
Implementations
sourceimpl CacheStats
impl CacheStats
sourcepub fn change_since(&self, previous: &CacheStats) -> CacheStatsDiff
pub fn change_since(&self, previous: &CacheStats) -> CacheStatsDiff
Calculate the change since a previous point in time of the stats of this cache.
Trait Implementations
sourceimpl Clone for CacheStats
impl Clone for CacheStats
sourcefn clone(&self) -> CacheStats
fn clone(&self) -> CacheStats
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CacheStats
impl Debug for CacheStats
sourceimpl Default for CacheStats
impl Default for CacheStats
sourcefn default() -> CacheStats
fn default() -> CacheStats
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CacheStats> for CacheStats
impl PartialEq<CacheStats> for CacheStats
sourcefn eq(&self, other: &CacheStats) -> bool
fn eq(&self, other: &CacheStats) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CacheStats) -> bool
fn ne(&self, other: &CacheStats) -> bool
This method tests for !=
.
impl StructuralPartialEq for CacheStats
Auto Trait Implementations
impl RefUnwindSafe for CacheStats
impl Send for CacheStats
impl Sync for CacheStats
impl Unpin for CacheStats
impl UnwindSafe for CacheStats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more