pub struct PerformanceTracker { /* private fields */ }Expand description
Performance tracking system
Implementations§
Source§impl PerformanceTracker
impl PerformanceTracker
Sourcepub fn new(config: MonitoringConfig, max_data_points: usize) -> Self
pub fn new(config: MonitoringConfig, max_data_points: usize) -> Self
Create new performance tracker
Sourcepub async fn record_data_point(&self, data_point: PerformanceDataPoint)
pub async fn record_data_point(&self, data_point: PerformanceDataPoint)
Record a performance data point
Sourcepub async fn get_statistics(&self) -> PerformanceStatistics
pub async fn get_statistics(&self) -> PerformanceStatistics
Get current statistics
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