pub struct PrefetchStats {
pub prefetch_attempts: AtomicU64,
pub prefetch_hits: AtomicU64,
pub prefetch_misses: AtomicU64,
pub bytes_prefetched: AtomicU64,
pub avg_confidence: Mutex<f64>,
}Expand description
Prefetch statistics
Fields§
§prefetch_attempts: AtomicU64Total prefetch attempts
prefetch_hits: AtomicU64Successful prefetches (block was used)
prefetch_misses: AtomicU64Wasted prefetches (block was not used)
bytes_prefetched: AtomicU64Bytes prefetched
avg_confidence: Mutex<f64>Average confidence of predictions
Implementations§
Trait Implementations§
Source§impl Debug for PrefetchStats
impl Debug for PrefetchStats
Source§impl Default for PrefetchStats
impl Default for PrefetchStats
Source§fn default() -> PrefetchStats
fn default() -> PrefetchStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PrefetchStats
impl !RefUnwindSafe for PrefetchStats
impl Send for PrefetchStats
impl Sync for PrefetchStats
impl Unpin for PrefetchStats
impl UnwindSafe for PrefetchStats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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