pub struct PerformanceMonitor { /* private fields */ }Expand description
Performance monitor for tracking operation timing
Implementations§
Source§impl PerformanceMonitor
impl PerformanceMonitor
Sourcepub fn start_timer(&self, operation: &str)
pub fn start_timer(&self, operation: &str)
Start timing an operation
Sourcepub fn stop_timer(&self, operation: &str)
pub fn stop_timer(&self, operation: &str)
Stop timing an operation and record metrics
Sourcepub fn get_metrics(&self, operation: &str) -> Option<OperationMetrics>
pub fn get_metrics(&self, operation: &str) -> Option<OperationMetrics>
Get metrics for a specific operation
Sourcepub fn get_all_metrics(&self) -> Vec<OperationMetrics>
pub fn get_all_metrics(&self) -> Vec<OperationMetrics>
Get all metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceMonitor
impl RefUnwindSafe for PerformanceMonitor
impl Send for PerformanceMonitor
impl Sync for PerformanceMonitor
impl Unpin for PerformanceMonitor
impl UnsafeUnpin for PerformanceMonitor
impl UnwindSafe for PerformanceMonitor
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