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

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

Issue 2051773002: [DoNotSubmit] Added peak_size to v8/malloc and test benchmark. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/page_sets/test.json ('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/test.py
diff --git a/tools/perf/page_sets/test.py b/tools/perf/page_sets/test.py
new file mode 100644
index 0000000000000000000000000000000000000000..26e44df23914d6d4f3cbf225e9d432be6a3f36d4
--- /dev/null
+++ b/tools/perf/page_sets/test.py
@@ -0,0 +1,41 @@
+# 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.
+import cgi
+import json
+import os
+import sys
+
+from telemetry.page import page as page_module
+from telemetry.page import shared_page_state
+from telemetry import story
+
+DUMP_WAIT_TIME = 10
+DUMP_COUNT = 10
+
+__location__ = os.path.realpath(
+ os.path.join(os.getcwd(), os.path.dirname(__file__)))
+
+
+_TEST_PAGES_FILE = os.path.join(__location__, 'test.json')
+
+
+class TestPage(page_module.Page):
+ def __init__(self, url, urls_list, page_set):
+ super(TestPage, self).__init__(
+ url=url, page_set=page_set,
+# shared_page_state_class=shared_page_state.SharedMobilePageState,
+ shared_page_state_class=shared_page_state.SharedPageState,
+ credentials_path='data/credentials.json')
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.Wait(30)
+
+
+class TestPageSet(story.StorySet):
+ def __init__(self):
+ super(TestPageSet, self).__init__()
+
+ for i in range(40):
+ self.AddStory(
+ TestPage('https://www.google.com/#q=obama', [], self))
« no previous file with comments | « tools/perf/page_sets/test.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698