pub struct PerformanceMonitorConfig {Show 15 fields
pub monitoring_interval_ms: u64,
pub max_samples: usize,
pub adaptive_tuning: bool,
pub adaptation_threshold: f64,
pub enable_alerts: bool,
pub alert_threshold: f64,
pub auto_optimization: bool,
pub optimization_interval_s: u64,
pub enable_prediction: bool,
pub prediction_horizon: usize,
pub enable_system_metrics: bool,
pub enable_anomaly_detection: bool,
pub anomaly_sensitivity: f64,
pub max_alert_history: usize,
pub max_adaptation_history: usize,
}
Expand description
Configuration for real-time performance monitoring
Fields§
§monitoring_interval_ms: u64
Monitoring interval in milliseconds
max_samples: usize
Maximum number of performance samples to keep
adaptive_tuning: bool
Enable adaptive tuning based on performance
adaptation_threshold: f64
Performance threshold for adaptation triggers
enable_alerts: bool
Enable real-time alerts
alert_threshold: f64
Alert threshold for performance degradation
auto_optimization: bool
Enable automatic optimization
optimization_interval_s: u64
Optimization interval in seconds
enable_prediction: bool
Enable performance prediction
prediction_horizon: usize
Prediction horizon in samples
enable_system_metrics: bool
Enable system metrics collection
enable_anomaly_detection: bool
Enable anomaly detection
anomaly_sensitivity: f64
Anomaly detection sensitivity (0.0 to 1.0)
max_alert_history: usize
Maximum alert history to keep
max_adaptation_history: usize
Maximum adaptation events to keep
Implementations§
Source§impl PerformanceMonitorConfig
impl PerformanceMonitorConfig
Sourcepub fn lightweight() -> Self
pub fn lightweight() -> Self
Create a lightweight configuration for minimal overhead
Sourcepub fn high_performance() -> Self
pub fn high_performance() -> Self
Create a high-performance configuration for detailed monitoring
Sourcepub fn with_monitoring_interval_ms(self, interval: u64) -> Self
pub fn with_monitoring_interval_ms(self, interval: u64) -> Self
Builder pattern methods for configuration
pub fn with_max_samples(self, max_samples: usize) -> Self
pub fn with_adaptive_tuning(self, enabled: bool) -> Self
pub fn with_adaptation_threshold(self, threshold: f64) -> Self
pub fn with_alerts(self, enabled: bool) -> Self
pub fn with_alert_threshold(self, threshold: f64) -> Self
pub fn with_auto_optimization(self, enabled: bool) -> Self
pub fn with_optimization_interval_s(self, interval: u64) -> Self
pub fn with_prediction(self, enabled: bool) -> Self
pub fn with_prediction_horizon(self, horizon: usize) -> Self
pub fn with_system_metrics(self, enabled: bool) -> Self
pub fn with_anomaly_detection(self, enabled: bool) -> Self
pub fn with_anomaly_sensitivity(self, sensitivity: f64) -> Self
Sourcepub fn estimated_memory_usage(&self) -> usize
pub fn estimated_memory_usage(&self) -> usize
Get estimated memory usage in bytes
Sourcepub fn is_realtime_suitable(&self) -> bool
pub fn is_realtime_suitable(&self) -> bool
Check if configuration is suitable for real-time operation
Sourcepub fn recommended_for_use_case(use_case: UseCase) -> Self
pub fn recommended_for_use_case(use_case: UseCase) -> Self
Get recommended settings based on use case
Trait Implementations§
Source§impl Clone for PerformanceMonitorConfig
impl Clone for PerformanceMonitorConfig
Source§fn clone(&self) -> PerformanceMonitorConfig
fn clone(&self) -> PerformanceMonitorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PerformanceMonitorConfig
impl Debug for PerformanceMonitorConfig
Auto Trait Implementations§
impl Freeze for PerformanceMonitorConfig
impl RefUnwindSafe for PerformanceMonitorConfig
impl Send for PerformanceMonitorConfig
impl Sync for PerformanceMonitorConfig
impl Unpin for PerformanceMonitorConfig
impl UnwindSafe for PerformanceMonitorConfig
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
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>
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>
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