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

Unified Diff: tools/perf/page_sets/battor_cases.py

Issue 1984473002: [Telemetry] Add BattOr benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« tools/perf/benchmarks/battor.py ('K') | « tools/perf/benchmarks/battor.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/battor_cases.py
diff --git a/tools/perf/page_sets/battor_cases.py b/tools/perf/page_sets/battor_cases.py
new file mode 100644
index 0000000000000000000000000000000000000000..3ba52aabaf14080591a789986fe1e3fa8e0d4a14
--- /dev/null
+++ b/tools/perf/page_sets/battor_cases.py
@@ -0,0 +1,36 @@
+# Copyright 2014 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 as page_module
+from telemetry.page import shared_page_state
+from telemetry import story
+
+
+URL_LIST = [
+ 'https://webkit.org/blog-files/3d-transforms/poster-circle.html'
nednguyen 2016/05/16 16:22:19 also youtube & about:blank?
rnephew (Reviews Here) 2016/05/16 18:55:05 Done.
+]
+
+
+class BattOrCasesPage(page_module.Page):
nednguyen 2016/05/16 16:22:18 s/BattOrCasesPage/PowerCasesPage
rnephew (Reviews Here) 2016/05/16 18:55:05 Done. Also changed the other instances to Power*
+
+ def __init__(self, url, page_set, name=''):
+ super(BattOrCasesPage, self).__init__(
+ url=url, page_set=page_set, name=name,
+ credentials_path = 'data/credentials.json',
+ shared_page_state_class=shared_page_state.SharedMobilePageState)
+ self.archive_data_file = 'data/battor_cases.json'
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.Wait(30)
+
+
+class BattOrCasesPageSet(story.StorySet):
+ """Power hungry pages, used for BattOr testing."""
+
+ def __init__(self):
+ super(BattOrCasesPageSet, self).__init__(
+ archive_data_file='data/battor_cases.json',
+ cloud_storage_bucket=story.PARTNER_BUCKET)
+
+ for url in URL_LIST:
+ self.AddStory(BattOrCasesPage(url, self))
« tools/perf/benchmarks/battor.py ('K') | « tools/perf/benchmarks/battor.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698