pub trait PerformanceMonitorTrait: Send + Sync {
// Required methods
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>;
}
Expand description
Trait for performance monitoring