Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Unified Diff: tools/perf/benchmarks/robohornet_pro.py

Issue 374163003: Update robohornet_pro to use results.AddValue(...) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/robohornet_pro.py
diff --git a/tools/perf/benchmarks/robohornet_pro.py b/tools/perf/benchmarks/robohornet_pro.py
index 8bf531bf325ebef5dae75300fc199afffac63f28..106b2d8eec4e968978eb38f2c622886ca9201339 100644
--- a/tools/perf/benchmarks/robohornet_pro.py
+++ b/tools/perf/benchmarks/robohornet_pro.py
@@ -10,6 +10,7 @@ from metrics import power
from telemetry import benchmark
from telemetry.page import page_measurement
from telemetry.page import page_set
+from telemetry.value import scalar
class _RobohornetProMeasurement(page_measurement.PageMeasurement):
@@ -36,7 +37,9 @@ class _RobohornetProMeasurement(page_measurement.PageMeasurement):
self._power_metric.AddResults(tab, results)
result = int(tab.EvaluateJavaScript('stopTime - startTime'))
- results.Add('Total', 'ms', result)
+ results.AddValue(
+ scalar.ScalarValue(results.current_page, 'Total', 'ms', result))
+
class RobohornetPro(benchmark.Benchmark):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698