pub struct PerformanceTracker { /* private fields */ }
Expand description
Performance tracker for scaling operations
Implementations§
Source§impl PerformanceTracker
impl PerformanceTracker
pub fn new() -> Self
pub fn checkpoint(&mut self, name: &str)
pub fn record_files_processed(&mut self, count: u64)
pub fn record_memory_peak(&mut self, memory: usize)
pub fn record_cache_hit(&mut self)
pub fn record_cache_miss(&mut self)
pub fn finish(self) -> ScalingMetrics
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