pub struct AdaptiveTuner { /* private fields */ }Expand description
Adaptive Cache Tuner
Continuously monitors cache performance and automatically adjusts parameters to optimize hit rates, latency, and resource utilization.
Implementations§
Source§impl AdaptiveTuner
impl AdaptiveTuner
Sourcepub fn new(config: TuningConfig) -> Self
pub fn new(config: TuningConfig) -> Self
Create a new adaptive tuner
Sourcepub async fn record_performance(&self, stats: &UnifiedCacheStats)
pub async fn record_performance(&self, stats: &UnifiedCacheStats)
Record performance snapshot
Sourcepub async fn analyze_and_tune(&self) -> Vec<TuningRecommendation>
pub async fn analyze_and_tune(&self) -> Vec<TuningRecommendation>
Analyze performance and generate tuning recommendations
Sourcepub fn get_current_parameters(&self) -> TuningParameters
pub fn get_current_parameters(&self) -> TuningParameters
Get current tuning parameters
Sourcepub fn get_stats(&self) -> AdaptiveTuningStats
pub fn get_stats(&self) -> AdaptiveTuningStats
Get tuning statistics
Sourcepub async fn record_tuning_outcome(&self, improved: bool, improvement: f64)
pub async fn record_tuning_outcome(&self, improved: bool, improvement: f64)
Record tuning outcome
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdaptiveTuner
impl !RefUnwindSafe for AdaptiveTuner
impl Send for AdaptiveTuner
impl Sync for AdaptiveTuner
impl Unpin for AdaptiveTuner
impl UnsafeUnpin for AdaptiveTuner
impl !UnwindSafe for AdaptiveTuner
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