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

Unified Diff: tools/perf/measurements/dromaeo.py

Issue 23455049: [telemetry] Make single-benchmark measurements protected and undiscoverable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update discover unit tests. Created 7 years, 2 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/measurements/blink_perf.py ('k') | tools/telemetry/telemetry/core/discover.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/dromaeo.py
diff --git a/tools/perf/measurements/dromaeo.py b/tools/perf/measurements/dromaeo.py
deleted file mode 100644
index 9682a22f0403d489137624b4584b78d2e6443b24..0000000000000000000000000000000000000000
--- a/tools/perf/measurements/dromaeo.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from telemetry.page import page_measurement
-
-class Dromaeo(page_measurement.PageMeasurement):
- def MeasurePage(self, page, tab, results):
- tab.WaitForJavaScriptExpression(
- 'window.document.cookie.indexOf("__done=1") >= 0', 600)
-
- js_get_results = 'JSON.stringify(window.automation.GetResults())'
- print js_get_results
- score = eval(tab.EvaluateJavaScript(js_get_results))
-
- def Escape(k):
- chars = [' ', '-', '/', '(', ')', '*']
- for c in chars:
- k = k.replace(c, '_')
- return k
-
- suffix = page.url[page.url.index('?') + 1 : page.url.index('&')]
- for k, v in score.iteritems():
- data_type = 'unimportant'
- if k == suffix:
- data_type = 'default'
- results.Add(Escape(k), 'runs/s', v, data_type=data_type)
« no previous file with comments | « tools/perf/measurements/blink_perf.py ('k') | tools/telemetry/telemetry/core/discover.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698