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

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

Issue 22754003: Refactor BenchmarkResult.Add to take enum for data_type (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 3 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 | « tools/perf/benchmarks/dom_perf.py ('k') | tools/perf/benchmarks/octane.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/kraken.py
===================================================================
--- tools/perf/benchmarks/kraken.py (revision 222891)
+++ tools/perf/benchmarks/kraken.py (working copy)
@@ -11,7 +11,11 @@
from telemetry.page import page_measurement
from telemetry.page import page_set
+# Get build scripts into our path.
+util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'build', 'util', 'lib')
+from common import perf_result_data_type # pylint: disable=F0401
+
def _Mean(l):
return float(sum(l)) / len(l) if len(l) > 0 else 0.0
@@ -34,7 +38,8 @@
for key in result_dict:
if key == 'v':
continue
- results.Add(key, 'ms', result_dict[key], data_type='unimportant')
+ results.Add(key, 'ms', result_dict[key],
+ perf_result_data_type.UNIMPORTANT)
total += _Mean(result_dict[key])
results.Add('Total', 'ms', total)
« no previous file with comments | « tools/perf/benchmarks/dom_perf.py ('k') | tools/perf/benchmarks/octane.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698