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

Unified Diff: tools/perf/perf_tools/octane.py

Issue 15463003: [Telemetry] Utilize CreatePageSet for benchmarks with one page set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/perf_tools/kraken.py ('k') | tools/perf/perf_tools/robohornetpro.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/perf_tools/octane.py
diff --git a/tools/perf/perf_tools/octane.py b/tools/perf/perf_tools/octane.py
index 16be77300919ba453a32a07ff3519443268b6507..e728005bd289f6059d85d89d9504d6acfbb8ea3c 100644
--- a/tools/perf/perf_tools/octane.py
+++ b/tools/perf/perf_tools/octane.py
@@ -1,10 +1,22 @@
# 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.
+
+import os
+
from telemetry.core import util
from telemetry.page import page_measurement
+from telemetry.page import page_set
class Octane(page_measurement.PageMeasurement):
+ def CreatePageSet(self, options):
+ return page_set.PageSet.FromDict({
nduca 2013/05/20 18:34:02 should we modify the page_runner to explode if the
dtu 2013/05/20 18:44:31 Just make the parameter not-optional in PageSet. I
+ 'pages': [
+ { 'url': 'file:///../../../chrome/test/data/perf/third_party/octane/'
+ 'index.html?auto=1' }
+ ]
+ }, file_path=os.path.abspath(__file__))
+
def MeasurePage(self, _, tab, results):
js_is_done = """
completed && !document.getElementById("progress-bar-container")"""
« no previous file with comments | « tools/perf/perf_tools/kraken.py ('k') | tools/perf/perf_tools/robohornetpro.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698