pub struct AdaptivePerformanceTuner { /* private fields */ }Expand description
Adaptive performance tuner for WAL system
Implementations§
Source§impl AdaptivePerformanceTuner
impl AdaptivePerformanceTuner
Sourcepub fn new(initial_config: PerformanceConfig, max_history_size: usize) -> Self
pub fn new(initial_config: PerformanceConfig, max_history_size: usize) -> Self
Create a new adaptive performance tuner
Sourcepub fn add_snapshot(&mut self, snapshot: PerformanceSnapshot)
pub fn add_snapshot(&mut self, snapshot: PerformanceSnapshot)
Add a performance snapshot
Sourcepub fn get_config(&self) -> PerformanceConfig
pub fn get_config(&self) -> PerformanceConfig
Get current configuration
Sourcepub fn get_stats(&self) -> TuningStats
pub fn get_stats(&self) -> TuningStats
Get tuning statistics
Auto Trait Implementations§
impl Freeze for AdaptivePerformanceTuner
impl RefUnwindSafe for AdaptivePerformanceTuner
impl Send for AdaptivePerformanceTuner
impl Sync for AdaptivePerformanceTuner
impl Unpin for AdaptivePerformanceTuner
impl UnwindSafe for AdaptivePerformanceTuner
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