pub struct Stats {
pub hits: usize,
pub misses: usize,
pub stored: usize,
pub evicted: usize,
}Expand description
What one run did with the store.
Kept by the store rather than by its callers, so a report cannot claim a number the store disagrees with.
Fields§
§hits: usizeModules replayed from an entry.
misses: usizeModules the store had nothing usable for, so they were checked. Counts a key that
was not there and an entry whose inputs had moved alike — both cost the same check,
and explain is what tells them apart.
stored: usizeEntries written. Not the same as misses: a run with writing off, or one whose
write failed, misses without storing.
evicted: usizeEntries the sweep dropped, which only htl check does.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more