Commit afb0e08b authored by nednguyen@google.com's avatar nednguyen@google.com

Update octane to use results.AddValue(...)

BUG=391943
TBR=nduca@chromium.org

Review URL: https://codereview.chromium.org/379613002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281895 0039d316-1c4b-4281-b951-d872f2087c98
parent a7166abd
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment