pub struct OperationMetrics {
pub name: String,
pub count: u64,
pub total_time_ms: f64,
pub min_time_ms: f64,
pub max_time_ms: f64,
}Expand description
Performance metrics for a specific operation
Fields§
§name: StringOperation name
count: u64Total number of operations
total_time_ms: f64Total time spent in milliseconds
min_time_ms: f64Minimum time in milliseconds
max_time_ms: f64Maximum time in milliseconds
Implementations§
Source§impl OperationMetrics
impl OperationMetrics
Sourcepub fn avg_time_ms(&self) -> f64
pub fn avg_time_ms(&self) -> f64
Calculate average time in milliseconds
Trait Implementations§
Source§impl Clone for OperationMetrics
impl Clone for OperationMetrics
Source§fn clone(&self) -> OperationMetrics
fn clone(&self) -> OperationMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OperationMetrics
impl RefUnwindSafe for OperationMetrics
impl Send for OperationMetrics
impl Sync for OperationMetrics
impl Unpin for OperationMetrics
impl UnwindSafe for OperationMetrics
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