pub struct PerformanceTracker { /* private fields */ }Expand description
Performance tracker for streaming operations.
Implementations§
Source§impl PerformanceTracker
impl PerformanceTracker
Sourcepub async fn checkpoint(&self, name: String) -> Result<()>
pub async fn checkpoint(&self, name: String) -> Result<()>
Record a checkpoint.
Sourcepub async fn get_checkpoints(&self) -> Vec<(String, Duration)>
pub async fn get_checkpoints(&self) -> Vec<(String, Duration)>
Get all checkpoints.
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 UnsafeUnpin 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