diff options
author | Malisa Smith <malisa.tsmith@gmail.com> | 2016-07-07 13:19:45 -0700 |
---|---|---|
committer | Malisa Smith <malisa.tsmith@gmail.com> | 2016-07-07 13:19:45 -0700 |
commit | 854cb5839fbf8fa5a4d9d58ecdf260f7740faff0 (patch) | |
tree | ee52403f1642c2acfd742c61ae81539adda66eb5 | |
parent | b7510bd89f54f0ccb9040f41d911be2aa30f46f0 (diff) | |
download | servo-854cb5839fbf8fa5a4d9d58ecdf260f7740faff0.tar.gz servo-854cb5839fbf8fa5a4d9d58ecdf260f7740faff0.zip |
added comment to profiler get_statistics function
-rw-r--r-- | components/profile/time.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |