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

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

Issue 632013002: [Telemetry] Replace RunStressMemorey with RunPageInteraction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
Index: tools/perf/page_sets/top_desktop_sites_2012Q3_stress.py
diff --git a/tools/perf/page_sets/top_desktop_sites_2012Q3_stress.py b/tools/perf/page_sets/top_desktop_sites_2012Q3_stress.py
new file mode 100644
index 0000000000000000000000000000000000000000..c9bc0961291ce0da1115f04d636380e783c7d0eb
--- /dev/null
+++ b/tools/perf/page_sets/top_desktop_sites_2012Q3_stress.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 page_sets import top_desktop_sites_2012Q3
+
+from telemetry.page import page_set
+from telemetry.page import page
+
+
+class Top2012Q3StressPage(page.Page):
+
+ def __init__(self, url, ps):
+ super(Top2012Q3StressPage, self).__init__(
+ url=url, page_set=ps, credentials_path='data/credentials.json')
+ self.make_javascript_deterministic = True
+ self.archive_data_file = 'data/2012Q3.json'
+
+ def RunPageInteractions(self, action_runner):
+ for _ in xrange(3):
+ action_runner.ReloadPage()
+ action_runner.Wait(1)
+ action_runner.ForceGarbageCollection()
+
+
+class Top2012Q3StressPageSet(page_set.PageSet):
+ """ Pages hand-picked from top-lists in Q32012. """
+
+ def __init__(self):
+ super(Top2012Q3StressPageSet, self).__init__(
+ make_javascript_deterministic=True,
+ archive_data_file='data/2012Q3.json',
+ bucket=page_set.PARTNER_BUCKET)
+
+ for url in top_desktop_sites_2012Q3.TOP_2013_URLS:
+ self.AddPage(Top2012Q3StressPage(url, self))

Powered by Google App Engine
This is Rietveld 408576698