Index: tools/telemetry/support/html_output/results-template.html |
diff --git a/tools/telemetry/support/html_output/results-template.html b/tools/telemetry/support/html_output/results-template.html |
index b79812da31793b742fd6a949a8bdbfe345af0da9..c9f20f9a1e486f56d39f7b219c9f6f56b9c9f164 100644 |
--- a/tools/telemetry/support/html_output/results-template.html |
+++ b/tools/telemetry/support/html_output/results-template.html |
@@ -279,7 +279,7 @@ var PADDING_UNDER_GRAPH = 5; |
// px Indentation for nested children left-margins |
var INDENTATION = 40; |
-function TestResult(metric, values, associatedRun) { |
+function TestResult(metric, values, associatedRun, std, degreeOfFreedom) { |
petrcermak
2015/09/10 09:04:09
nit: s/degreeOfFreedom/degreesOfFreedom/g (should
nednguyen
2015/09/10 15:11:59
Done.
|
if (values) { |
if (values[0] instanceof Array) { |
var flattenedValues = []; |
@@ -321,6 +321,10 @@ function TestResult(metric, values, associatedRun) { |
this.min = function () { return metric.scalingFactor() * Statistics.min(values); } |
this.max = function () { return metric.scalingFactor() * Statistics.max(values); } |
this.confidenceIntervalDelta = function () { |
+ if (std !== undefined) { |
+ return metric.scalingFactor() * Statistics.confidenceIntervalDeltaFromStd(0.95, values.length, |
+ std, degreeOfFreedom); |
+ } |
return metric.scalingFactor() * Statistics.confidenceIntervalDelta(0.95, values.length, |
Statistics.sum(values), Statistics.squareSum(values)); |
} |
@@ -1359,7 +1363,10 @@ function init() { |
metric = new PerfTestMetric(testName, metricName, rawMetrics[metricName].units, rawMetrics[metricName].important); |
metrics[fullMetricName] = metric; |
} |
- metric.addResult(new TestResult(metric, rawMetrics[metricName].current, run)); |
+ // std & degree_of_freedom could be undefined |
+ metric.addResult( |
+ new TestResult(metric, rawMetrics[metricName].current, |
+ run, rawMetrics[metricName].['std'], rawMetrics[metricName]['degree_of_freedom'])); |
} |
} |
} |