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

Update dom_perf to use results.AddValue

BUG=391943
TBR=nduca@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282676 0039d316-1c4b-4281-b951-d872f2087c98
parent 849f0520
......@@ -52,8 +52,9 @@ class _DomPerfMeasurement(page_measurement.PageMeasurement):
for suite in data['BenchmarkSuites']:
# Skip benchmarks that we didn't actually run this time around.
if len(suite['Benchmarks']) or suite['score']:
results.Add(SCORE_TRACE_NAME, SCORE_UNIT,
suite['score'], suite['name'], 'unimportant')
results.AddValue(scalar.ScalarValue(
results.current_page, '%s.%s' % (suite['name'], SCORE_TRACE_NAME),
SCORE_UNIT, suite['score'], important=False))
finally:
tab.EvaluateJavaScript('document.cookie = "__domperf_finished=0"')
......
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