pub struct PerformanceTracker { /* private fields */ }Expand description
Performance tracker for measuring operation times
Implementations§
Source§impl PerformanceTracker
impl PerformanceTracker
Sourcepub fn set_target(&self, operation: String, max_time_ms: f64)
pub fn set_target(&self, operation: String, max_time_ms: f64)
Set performance target for an operation
Sourcepub fn get_metrics(&self, operation: &str) -> Option<OperationMetrics>
pub fn get_metrics(&self, operation: &str) -> Option<OperationMetrics>
Get metrics for an operation
Sourcepub fn all_metrics(&self) -> Vec<OperationMetrics>
pub fn all_metrics(&self) -> Vec<OperationMetrics>
Get all metrics
Sourcepub fn print_report(&self)
pub fn print_report(&self)
Print performance report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerformanceTracker
impl RefUnwindSafe for PerformanceTracker
impl Send for PerformanceTracker
impl Sync for PerformanceTracker
impl Unpin for PerformanceTracker
impl UnwindSafe for PerformanceTracker
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