pub struct AccessStatistics {
pub total_accesses: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub average_stride: f64,
pub stride_variance: f64,
pub dominant_pattern: AccessPattern,
pub pattern_distribution: HashMap<AccessPattern, u64>,
}Expand description
Statistics about memory access patterns
Fields§
§total_accesses: u64Total number of accesses recorded
cache_hits: u64Number of cache hits (estimated)
cache_misses: u64Number of cache misses (estimated)
average_stride: f64Average stride between consecutive accesses
stride_variance: f64Standard deviation of stride
dominant_pattern: AccessPatternDominant access pattern
pattern_distribution: HashMap<AccessPattern, u64>Pattern frequency distribution
Trait Implementations§
Source§impl Clone for AccessStatistics
impl Clone for AccessStatistics
Source§fn clone(&self) -> AccessStatistics
fn clone(&self) -> AccessStatistics
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 AccessStatistics
impl RefUnwindSafe for AccessStatistics
impl Send for AccessStatistics
impl Sync for AccessStatistics
impl Unpin for AccessStatistics
impl UnsafeUnpin for AccessStatistics
impl UnwindSafe for AccessStatistics
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