pub struct ProfileStats {
pub operation: String,
pub count: usize,
pub min: Duration,
pub max: Duration,
pub mean: Duration,
pub median: Duration,
pub p95: Duration,
pub p99: Duration,
pub total: Duration,
}Expand description
Summary statistics for a profiled operation
Fields§
§operation: String§count: usize§min: Duration§max: Duration§mean: Duration§median: Duration§p95: Duration§p99: Duration§total: DurationImplementations§
Source§impl ProfileStats
impl ProfileStats
Sourcepub fn ops_per_sec(&self) -> f64
pub fn ops_per_sec(&self) -> f64
Operations per second
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Format as a human-readable report line
Trait Implementations§
Source§impl Clone for ProfileStats
impl Clone for ProfileStats
Source§fn clone(&self) -> ProfileStats
fn clone(&self) -> ProfileStats
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 ProfileStats
impl RefUnwindSafe for ProfileStats
impl Send for ProfileStats
impl Sync for ProfileStats
impl Unpin for ProfileStats
impl UnsafeUnpin for ProfileStats
impl UnwindSafe for ProfileStats
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