pub struct RealTimePerformanceMonitor { /* private fields */ }
Expand description
Real-time performance monitor for Advanced processors
Implementations§
Source§impl RealTimePerformanceMonitor
impl RealTimePerformanceMonitor
Sourcepub fn new(config: PerformanceMonitorConfig) -> Self
pub fn new(config: PerformanceMonitorConfig) -> Self
Create a new real-time performance monitor
Sourcepub fn start_monitoring(&self) -> SparseResult<()>
pub fn start_monitoring(&self) -> SparseResult<()>
Start real-time monitoring
Sourcepub fn stop_monitoring(&self)
pub fn stop_monitoring(&self)
Stop monitoring
Sourcepub fn is_monitoring_active(&self) -> bool
pub fn is_monitoring_active(&self) -> bool
Check if monitoring is active
Sourcepub fn register_quantum_processor<T>(&self, processor: T) -> SparseResult<()>where
T: QuantumProcessorMonitor + 'static,
pub fn register_quantum_processor<T>(&self, processor: T) -> SparseResult<()>where
T: QuantumProcessorMonitor + 'static,
Register a quantum processor for monitoring
Sourcepub fn register_neural_processor<T>(&self, processor: T) -> SparseResult<()>where
T: NeuralProcessorMonitor + 'static,
pub fn register_neural_processor<T>(&self, processor: T) -> SparseResult<()>where
T: NeuralProcessorMonitor + 'static,
Register a neural processor for monitoring
Sourcepub fn register_hybrid_processor<T>(&self, processor: T) -> SparseResult<()>where
T: HybridProcessorMonitor + 'static,
pub fn register_hybrid_processor<T>(&self, processor: T) -> SparseResult<()>where
T: HybridProcessorMonitor + 'static,
Register a hybrid processor for monitoring
Sourcepub fn register_memory_compressor<T>(&self, compressor: T) -> SparseResult<()>where
T: MemoryCompressorMonitor + 'static,
pub fn register_memory_compressor<T>(&self, compressor: T) -> SparseResult<()>where
T: MemoryCompressorMonitor + 'static,
Register a memory compressor for monitoring
Sourcepub fn get_monitoring_summary(&self) -> MonitoringSummary
pub fn get_monitoring_summary(&self) -> MonitoringSummary
Get monitoring summary
Sourcepub fn get_recent_samples(&self, count: usize) -> Vec<PerformanceSample>
pub fn get_recent_samples(&self, count: usize) -> Vec<PerformanceSample>
Get recent performance samples
Sourcepub fn get_active_alerts(&self) -> Vec<Alert>
pub fn get_active_alerts(&self) -> Vec<Alert>
Get active alerts
Sourcepub fn get_system_metrics(&self) -> Option<SystemMetrics>
pub fn get_system_metrics(&self) -> Option<SystemMetrics>
Get system metrics
Sourcepub fn record_sample(&self, sample: PerformanceSample) -> SparseResult<()>
pub fn record_sample(&self, sample: PerformanceSample) -> SparseResult<()>
Record a custom performance sample
Sourcepub fn get_processor_summary(&self) -> Vec<ProcessorSummary>
pub fn get_processor_summary(&self) -> Vec<ProcessorSummary>
Get processor performance summary
Sourcepub fn clear_data(&self) -> SparseResult<()>
pub fn clear_data(&self) -> SparseResult<()>
Clear all monitoring data
Auto Trait Implementations§
impl !Freeze for RealTimePerformanceMonitor
impl RefUnwindSafe for RealTimePerformanceMonitor
impl Send for RealTimePerformanceMonitor
impl Sync for RealTimePerformanceMonitor
impl Unpin for RealTimePerformanceMonitor
impl UnwindSafe for RealTimePerformanceMonitor
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