pub struct RealTimeMonitor { /* private fields */ }
Expand description
Real-time performance monitor with adaptive optimization
Implementations§
Source§impl RealTimeMonitor
impl RealTimeMonitor
Sourcepub fn new() -> NeuralResult<Self>
pub fn new() -> NeuralResult<Self>
Create a new real-time performance monitor
Sourcepub fn with_config(config: MonitorConfig) -> NeuralResult<Self>
pub fn with_config(config: MonitorConfig) -> NeuralResult<Self>
Create a monitor with custom configuration
Sourcepub fn get_trends(
&self,
operation_name: &str,
window_size: usize,
) -> Option<PerformanceTrend>
pub fn get_trends( &self, operation_name: &str, window_size: usize, ) -> Option<PerformanceTrend>
Get performance trends for an operation
Sourcepub fn get_bottleneck_analysis(
&self,
operation_name: &str,
) -> Option<BottleneckAnalysis>
pub fn get_bottleneck_analysis( &self, operation_name: &str, ) -> Option<BottleneckAnalysis>
Get bottleneck analysis
Trait Implementations§
Source§impl PerformanceMonitorTrait for RealTimeMonitor
impl PerformanceMonitorTrait for RealTimeMonitor
fn start_operation(&self, name: &str) -> OperationHandle
fn end_operation(&self, handle: OperationHandle) -> NeuralResult<OperationStats>
fn get_performance_summary(&self) -> PerformanceStats
fn detect_degradation(&self) -> Option<PerformanceDegradation>
Auto Trait Implementations§
impl Freeze for RealTimeMonitor
impl RefUnwindSafe for RealTimeMonitor
impl Send for RealTimeMonitor
impl Sync for RealTimeMonitor
impl Unpin for RealTimeMonitor
impl UnwindSafe for RealTimeMonitor
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