From 854cb5839fbf8fa5a4d9d58ecdf260f7740faff0 Mon Sep 17 00:00:00 2001 From: Malisa Smith Date: Thu, 7 Jul 2016 13:19:45 -0700 Subject: [PATCH] added comment to profiler get_statistics function --- components/profile/time.rs | 1 + 1 file changed, 1 insertion(+) 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");