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

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

Issue 1083413002: Remove repaint's reliance on auto issuing marker feature of smoothness_controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/measurements/smoothness_controller.py ('k') | no next file » | 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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 5 from telemetry.page import page_set as page_set_module
6 6
7 from page_sets import key_mobile_sites_pages 7 from page_sets import key_mobile_sites_pages
8 8
9 9
10 def _RepaintContinously(action_runner): 10 def _RepaintContinously(action_runner):
11 action_runner.RepaintContinuously(seconds=5) 11 with action_runner.CreateInteraction('Repaint'):
12 action_runner.RepaintContinuously(seconds=5)
12 13
13 14
14 def _CreatePageClassWithRepaintInteractions(page_cls): 15 def _CreatePageClassWithRepaintInteractions(page_cls):
15 class DerivedRepaintPage(page_cls): # pylint: disable=W0232 16 class DerivedRepaintPage(page_cls): # pylint: disable=W0232
16 17
17 def RunPageInteractions(self, action_runner): 18 def RunPageInteractions(self, action_runner):
18 _RepaintContinously(action_runner) 19 _RepaintContinously(action_runner)
19 return DerivedRepaintPage 20 return DerivedRepaintPage
20 21
21 22
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' 177 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&'
177 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), 178 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'),
178 # Why: Top search engine 179 # Why: Top search engine
179 'http://www.bing.com/search?q=sloths', 180 'http://www.bing.com/search?q=sloths',
180 # Why: Good example of poor initial scrolling 181 # Why: Good example of poor initial scrolling
181 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' 182 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans'
182 ] 183 ]
183 184
184 for url in urls_list: 185 for url in urls_list:
185 self.AddUserStory(KeyMobileSitesRepaintPage(url, self)) 186 self.AddUserStory(KeyMobileSitesRepaintPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/measurements/smoothness_controller.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698