pub struct AdvancedPerformanceOptimizer { /* private fields */ }Expand description
Advanced performance optimizer with workload analysis
Implementations§
Source§impl AdvancedPerformanceOptimizer
impl AdvancedPerformanceOptimizer
Sourcepub fn new(config: PerformanceConfig) -> Self
pub fn new(config: PerformanceConfig) -> Self
Create a new advanced optimizer
Sourcepub fn record_workload(&mut self, metrics: WorkloadMetrics)
pub fn record_workload(&mut self, metrics: WorkloadMetrics)
Record workload metrics
Sourcepub fn get_recommendations(&self) -> &[String]
pub fn get_recommendations(&self) -> &[String]
Get current optimization recommendations
Sourcepub fn get_workload_analysis(&self) -> WorkloadAnalysis
pub fn get_workload_analysis(&self) -> WorkloadAnalysis
Get workload analysis summary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedPerformanceOptimizer
impl RefUnwindSafe for AdvancedPerformanceOptimizer
impl Send for AdvancedPerformanceOptimizer
impl Sync for AdvancedPerformanceOptimizer
impl Unpin for AdvancedPerformanceOptimizer
impl UnsafeUnpin for AdvancedPerformanceOptimizer
impl UnwindSafe for AdvancedPerformanceOptimizer
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