Skip to content

Commit

Permalink
added comment to profiler get_statistics function
Browse files Browse the repository at this point in the history
  • Loading branch information
malisas committed Jul 7, 2016
1 parent b7510bd commit 854cb58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/profile/time.rs
Expand Up @@ -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");
Expand Down

0 comments on commit 854cb58

Please sign in to comment.