mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
added comment to profiler get_statistics function
This commit is contained in:
parent
b7510bd89f
commit
854cb5839f
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue