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

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

Issue 346923003: Add ActionRunner wrapper for the remaining less used actions (try 2): (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit test to skip test if touch is not supported. Created 6 years, 5 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
« no previous file with comments | « tools/perf/page_sets/media_cns_cases.py ('k') | tools/perf/page_sets/top_25.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 as page_module 6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module 7 from telemetry.page import page_set as page_set_module
8 8
9 9
10 class MobileMemoryPage(page_module.Page): 10 class MobileMemoryPage(page_module.Page):
(...skipping 12 matching lines...) Expand all
23 url='https://mail.google.com/mail/mu', 23 url='https://mail.google.com/mail/mu',
24 page_set=page_set) 24 page_set=page_set)
25 25
26 self.reload_and_gc = [{'action': 'reload'}, 26 self.reload_and_gc = [{'action': 'reload'},
27 {'action': 'wait', 27 {'action': 'wait',
28 'seconds': 15}, 28 'seconds': 15},
29 {'action': 'js_collect_garbage'}] 29 {'action': 'js_collect_garbage'}]
30 self.credentials = 'google' 30 self.credentials = 'google'
31 31
32 def ReloadAndGc(self, action_runner): 32 def ReloadAndGc(self, action_runner):
33 action_runner.RunAction(ReloadAction()) 33 action_runner.ReloadPage()
34 action_runner.Wait(15) 34 action_runner.Wait(15)
35 action_runner.ForceGarbageCollection() 35 action_runner.ForceGarbageCollection()
36 36
37 def RunStressMemory(self, action_runner): 37 def RunStressMemory(self, action_runner):
38 for _ in xrange(3): 38 for _ in xrange(3):
39 self.ReloadAndGc(action_runner) 39 self.ReloadAndGc(action_runner)
40 40
41 41
42 class GoogleSearchPage(MobileMemoryPage): 42 class GoogleSearchPage(MobileMemoryPage):
43 43
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 # Why: Renderer process memory bloat 102 # Why: Renderer process memory bloat
103 'http://techcrunch.com', 103 'http://techcrunch.com',
104 # pylint: disable=C0301 104 # pylint: disable=C0301
105 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam e-art-to-life-in-your-home/', 105 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam e-art-to-life-in-your-home/',
106 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/', 106 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/',
107 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/', 107 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/',
108 ] 108 ]
109 109
110 for url in urls_list: 110 for url in urls_list:
111 self.AddPage(ScrollPage(url, self)) 111 self.AddPage(ScrollPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/media_cns_cases.py ('k') | tools/perf/page_sets/top_25.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698