Index: tools/perf/benchmarks/octane.py |
diff --git a/tools/perf/benchmarks/octane.py b/tools/perf/benchmarks/octane.py |
index c03325222359d72f6c5ffe8660f1241a0917bf0e..6af1bb85afd9555e57798dceb07e70b0776a5320 100644 |
--- a/tools/perf/benchmarks/octane.py |
+++ b/tools/perf/benchmarks/octane.py |
@@ -20,8 +20,10 @@ from telemetry.page import page_set |
from telemetry.util import statistics |
from telemetry.value import scalar |
+ |
_GB = 1024 * 1024 * 1024 |
+ |
class _OctaneMeasurement(page_measurement.PageMeasurement): |
def __init__(self): |
super(_OctaneMeasurement, self).__init__() |
@@ -69,7 +71,9 @@ class _OctaneMeasurement(page_measurement.PageMeasurement): |
if 'Skipped' not in score_and_name[1]: |
name = score_and_name[0] |
score = int(score_and_name[1]) |
- results.Add(name, 'score', score, data_type='unimportant') |
+ results.AddValue(scalar.ScalarValue( |
+ results.current_page, name, 'score', score, important=False)) |
+ |
# Collect all test scores to compute geometric mean. |
all_scores.append(score) |
total = statistics.GeometricMean(all_scores) |