pub struct PerformanceProfiler { /* private fields */ }Expand description
Performance profiler
Implementations§
Source§impl PerformanceProfiler
impl PerformanceProfiler
Sourcepub fn record_operation(&mut self, operation: &str, metrics: OperationMetrics)
pub fn record_operation(&mut self, operation: &str, metrics: OperationMetrics)
Record operation metrics
Sourcepub fn get_operation_metrics(&self) -> HashMap<String, OperationMetrics>
pub fn get_operation_metrics(&self) -> HashMap<String, OperationMetrics>
Get operation metrics
Sourcepub fn get_operation_counts(&self) -> HashMap<String, usize>
pub fn get_operation_counts(&self) -> HashMap<String, usize>
Get operation counts
Auto Trait Implementations§
impl Freeze for PerformanceProfiler
impl RefUnwindSafe for PerformanceProfiler
impl Send for PerformanceProfiler
impl Sync for PerformanceProfiler
impl Unpin for PerformanceProfiler
impl UnwindSafe for PerformanceProfiler
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more