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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from page_sets import top_desktop_sites_2012Q3
6
7 from telemetry.page import page_set
8 from telemetry.page import page
9
10
11 class Top2012Q3StressPage(page.Page):
12
13 def __init__(self, url, ps):
14 super(Top2012Q3StressPage, self).__init__(
15 url=url, page_set=ps, credentials_path='data/credentials.json')
16 self.make_javascript_deterministic = True
17 self.archive_data_file = 'data/2012Q3.json'
18
19 def RunPageInteractions(self, action_runner):
20 for _ in xrange(3):
21 action_runner.ReloadPage()
22 action_runner.Wait(1)
23 action_runner.ForceGarbageCollection()
24
25
26 class Top2012Q3StressPageSet(page_set.PageSet):
27 """ Pages hand-picked from top-lists in Q32012. """
28
29 def __init__(self):
30 super(Top2012Q3StressPageSet, self).__init__(
31 make_javascript_deterministic=True,
32 archive_data_file='data/2012Q3.json',
33 bucket=page_set.PARTNER_BUCKET)
34
35 for url in top_desktop_sites_2012Q3.TOP_2013_URLS:
36 self.AddPage(Top2012Q3StressPage(url, self))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698