diff --git a/components/profile/time.rs b/components/profile/time.rs index ca9d8070d9f..39589536eac 100644 --- a/components/profile/time.rs +++ b/components/profile/time.rs @@ -327,6 +327,7 @@ impl Profiler { true } + /// Get tuple (mean, median, min, max) for profiler statistics. pub fn get_statistics(data: &[f64]) -> (f64, f64, f64, f64) { data.iter().fold(-f64::INFINITY, |a, &b| { debug_assert!(a < b, "Data must be sorted");