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

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

Issue 375703007: Update kraken 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/kraken.py
diff --git a/tools/perf/benchmarks/kraken.py b/tools/perf/benchmarks/kraken.py
index a4687c9ae333d3147956e31dc489028272ea8d7c..b7addf650531bb88f914b4bc2cb7d538981391dc 100644
--- a/tools/perf/benchmarks/kraken.py
+++ b/tools/perf/benchmarks/kraken.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
def _Mean(l):
@@ -47,9 +48,11 @@ decodeURIComponent(formElement.value.split("?")[1]);
for key in result_dict:
if key == 'v':
continue
- results.Add(key, 'ms', result_dict[key], data_type='unimportant')
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, key, 'ms', result_dict[key], important=False))
total += _Mean(result_dict[key])
- results.Add('Total', 'ms', total)
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, 'Total', 'ms', total))
class Kraken(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