pub struct PrefetchingEngine { /* private fields */ }Expand description
Main prefetching engine
Implementations§
Source§impl PrefetchingEngine
impl PrefetchingEngine
pub fn new(config: PrefetchConfig) -> Self
Sourcepub fn record_access(&mut self, access: MemoryAccess) -> Vec<PrefetchRequest>
pub fn record_access(&mut self, access: MemoryAccess) -> Vec<PrefetchRequest>
Record a memory access and potentially trigger prefetching
Sourcepub fn process_prefetch_queue(&mut self) -> Vec<PrefetchRequest>
pub fn process_prefetch_queue(&mut self) -> Vec<PrefetchRequest>
Process prefetch queue and issue prefetches
Sourcepub fn update_performance(&mut self)
pub fn update_performance(&mut self)
Update statistics and performance metrics
Sourcepub fn get_stats(&self) -> &PrefetchStats
pub fn get_stats(&self) -> &PrefetchStats
Get prefetching statistics
Sourcepub fn get_cache_stats(&self) -> &CacheStats
pub fn get_cache_stats(&self) -> &CacheStats
Get cache statistics
Sourcepub fn get_performance_metrics(&self) -> &PerfMetrics
pub fn get_performance_metrics(&self) -> &PerfMetrics
Get performance metrics
Sourcepub fn get_access_history(&self) -> &AccessHistoryTracker
pub fn get_access_history(&self) -> &AccessHistoryTracker
Get access history
Sourcepub fn configure(&mut self, config: PrefetchConfig)
pub fn configure(&mut self, config: PrefetchConfig)
Configure prefetching engine
Auto Trait Implementations§
impl Freeze for PrefetchingEngine
impl !RefUnwindSafe for PrefetchingEngine
impl Send for PrefetchingEngine
impl Sync for PrefetchingEngine
impl Unpin for PrefetchingEngine
impl UnsafeUnpin for PrefetchingEngine
impl !UnwindSafe for PrefetchingEngine
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> 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