pub struct ProfileStatistics {
pub mean: f64,
pub median: f64,
pub p50: f64,
pub p90: f64,
pub p95: f64,
pub p99: f64,
pub std_dev: f64,
}Expand description
Statistical metrics for profiling data
Fields§
§mean: f64§median: f64§p50: f64§p90: f64§p95: f64§p99: f64§std_dev: f64Implementations§
Source§impl ProfileStatistics
impl ProfileStatistics
Sourcepub fn from_durations(durations: &mut [Duration]) -> Self
pub fn from_durations(durations: &mut [Duration]) -> Self
Calculate statistics from a set of durations
Trait Implementations§
Source§impl Clone for ProfileStatistics
impl Clone for ProfileStatistics
Source§fn clone(&self) -> ProfileStatistics
fn clone(&self) -> ProfileStatistics
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 ProfileStatistics
impl RefUnwindSafe for ProfileStatistics
impl Send for ProfileStatistics
impl Sync for ProfileStatistics
impl Unpin for ProfileStatistics
impl UnwindSafe for ProfileStatistics
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