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 register_quantum_processor(
&self,
id: String,
processor: Box<dyn QuantumProcessorMonitor>,
) -> SparseResult<()>
pub fn register_quantum_processor( &self, id: String, processor: Box<dyn QuantumProcessorMonitor>, ) -> SparseResult<()>
Register a quantum processor for monitoring
Sourcepub fn register_neural_processor(
&self,
id: String,
processor: Box<dyn NeuralProcessorMonitor>,
) -> SparseResult<()>
pub fn register_neural_processor( &self, id: String, processor: Box<dyn NeuralProcessorMonitor>, ) -> SparseResult<()>
Register a neural processor for monitoring
Sourcepub fn register_hybrid_processor(
&self,
id: String,
processor: Box<dyn HybridProcessorMonitor>,
) -> SparseResult<()>
pub fn register_hybrid_processor( &self, id: String, processor: Box<dyn HybridProcessorMonitor>, ) -> SparseResult<()>
Register a hybrid processor for monitoring
Sourcepub fn register_memory_compressor(
&self,
id: String,
compressor: Box<dyn MemoryCompressorMonitor>,
) -> SparseResult<()>
pub fn register_memory_compressor( &self, id: String, compressor: Box<dyn MemoryCompressorMonitor>, ) -> SparseResult<()>
Register a memory compressor for monitoring
Sourcepub fn get_currentmetrics(&self) -> PerformanceMetrics
pub fn get_currentmetrics(&self) -> PerformanceMetrics
Get current performance metrics
Sourcepub fn get_active_alerts(&self) -> Vec<Alert>
pub fn get_active_alerts(&self) -> Vec<Alert>
Get active alerts
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