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

Unified Diff: tools/perf/measurements/dromaeo.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/sunspider.py ('k') | tools/perf/measurements/rasterize_and_record.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/dromaeo.py
===================================================================
--- tools/perf/measurements/dromaeo.py (revision 222891)
+++ tools/perf/measurements/dromaeo.py (working copy)
@@ -5,6 +5,10 @@
from telemetry.core import util
from telemetry.page import page_measurement
+# Get build scripts into our path.
+util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'build', 'util', 'lib')
+from common import perf_result_data_type # pylint: disable=F0401
+
class Dromaeo(page_measurement.PageMeasurement):
def MeasurePage(self, page, tab, results):
js_is_done = 'window.document.cookie.indexOf("__done=1") >= 0'
@@ -24,7 +28,7 @@
suffix = page.url[page.url.index('?') + 1 : page.url.index('&')]
for k, v in score.iteritems():
- data_type = 'unimportant'
+ data_type = perf_result_data_type.UNIMPORTANT
if k == suffix:
- data_type = 'default'
+ data_type = perf_result_data_type.DEFAULT
results.Add(Escape(k), 'runs/s', v, data_type=data_type)
« no previous file with comments | « tools/perf/benchmarks/sunspider.py ('k') | tools/perf/measurements/rasterize_and_record.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698