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

Side by Side Diff: tools/perf/page_sets/top_desktop_sites_2012Q3.py

Issue 338883005: Add ForceGarbageCollection and PauseInteractive to ActionRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 # pylint: disable=W0401,W0614 4 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.all_page_actions import * 5 from telemetry.page.actions.all_page_actions import *
6 from telemetry.page import page_set 6 from telemetry.page import page_set
7 from telemetry.page import page 7 from telemetry.page import page
8 8
9 9
10 class Top2012Q3Page(page.Page): 10 class Top2012Q3Page(page.Page):
11 11
12 def __init__(self, url, ps): 12 def __init__(self, url, ps):
13 super(Top2012Q3Page, self).__init__(url=url, page_set=ps) 13 super(Top2012Q3Page, self).__init__(url=url, page_set=ps)
14 self.make_javascript_deterministic = True 14 self.make_javascript_deterministic = True
15 self.credentials_path = 'data/credentials.json' 15 self.credentials_path = 'data/credentials.json'
16 self.archive_data_file = 'data/2012Q3.json' 16 self.archive_data_file = 'data/2012Q3.json'
17 17
18 def ReloadAndGc(self, action_runner): 18 def ReloadAndGc(self, action_runner):
19 action_runner.RunAction(ReloadAction()) 19 action_runner.RunAction(ReloadAction())
20 action_runner.Wait(1) 20 action_runner.Wait(1)
21 action_runner.RunAction(JsCollectGarbageAction()) 21 action_runner.ForceGarbageCollection()
22 22
23 def RunSmoothness(self, action_runner): 23 def RunSmoothness(self, action_runner):
24 action_runner.RunAction(ScrollAction()) 24 action_runner.RunAction(ScrollAction())
25 25
26 def RunStressMemory(self, action_runner): 26 def RunStressMemory(self, action_runner):
27 for _ in xrange(3): 27 for _ in xrange(3):
28 self.ReloadAndGc(action_runner) 28 self.ReloadAndGc(action_runner)
29 29
30 30
31 class Top2012Q3PageSet(page_set.PageSet): 31 class Top2012Q3PageSet(page_set.PageSet):
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 'http://www.target.com/c/women/-/N-5xtd3#?lnk=nav_t_spc_1_0', 269 'http://www.target.com/c/women/-/N-5xtd3#?lnk=nav_t_spc_1_0',
270 'http://dianxin.cn', 270 'http://dianxin.cn',
271 'http://www.aizhan.com/siteall/www.youboy.com/', 271 'http://www.aizhan.com/siteall/www.youboy.com/',
272 'http://veiculos-home.mercadolivre.com.br/', 272 'http://veiculos-home.mercadolivre.com.br/',
273 'http://kakaku.com', 273 'http://kakaku.com',
274 'http://flipkart.com', 274 'http://flipkart.com',
275 'http://paipai.com'] 275 'http://paipai.com']
276 276
277 for url in urls_list: 277 for url in urls_list:
278 self.AddPage(Top2012Q3Page(url, self)) 278 self.AddPage(Top2012Q3Page(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/mobile_memory.py ('k') | tools/telemetry/telemetry/page/actions/action_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698