pub struct MetricSummary {
pub sum: u32,
pub max: u32,
pub median: u32,
pub p90: u32,
pub p95: u32,
}Expand description
Distribution of one metric over the population of all functions.
Complexity is right-skewed, so the percentiles (not a mean/stddev) carry the
signal: median is the typical function, p90/p95/max describe the tail
where refactoring candidates live.
Fields§
§sum: u32§max: u32§median: u32§p90: u32§p95: u32Trait Implementations§
Source§impl Clone for MetricSummary
impl Clone for MetricSummary
Source§fn clone(&self) -> MetricSummary
fn clone(&self) -> MetricSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricSummary
impl Debug for MetricSummary
Auto Trait Implementations§
impl Freeze for MetricSummary
impl RefUnwindSafe for MetricSummary
impl Send for MetricSummary
impl Sync for MetricSummary
impl Unpin for MetricSummary
impl UnsafeUnpin for MetricSummary
impl UnwindSafe for MetricSummary
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