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

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

Issue 250813002: Telemetry: Add a reduced compositor cases page set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace Created 6 years, 7 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/data/tough_compositor_cases_000.wpr.sha1 ('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
(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 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.all_page_actions import *
6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module
8
9
10 class ToughCompositorPage(page_module.Page):
11
12 def __init__(self, url, page_set):
13 super(ToughCompositorPage, self).__init__(url=url, page_set=page_set)
14 self.credentials_path = 'data/credentials.json'
15 self.user_agent_type = 'mobile'
16 self.archive_data_file = 'data/tough_compositor_cases.json'
17
18 def RunNavigateSteps(self, action_runner):
19 action_runner.RunAction(NavigateAction())
20 # TODO(epenner): Remove this wait (http://crbug.com/366933)
21 action_runner.RunAction(WaitAction({'seconds': 5}))
22
23 class ToughCompositorScrollPage(ToughCompositorPage):
24
25 def __init__(self, url, page_set):
26 super(ToughCompositorScrollPage, self).__init__(url=url, page_set=page_set)
27
28 def RunSmoothness(self, action_runner):
29 # Make the scroll longer to reduce noise.
30 scroll_down = ScrollAction()
31 scroll_down.direction = "down"
32 scroll_down.speed = 300
33 action_runner.RunAction(scroll_down)
34
35 class ToughCompositorWaitPage(ToughCompositorPage):
36
37 def __init__(self, url, page_set):
38 super(ToughCompositorWaitPage, self).__init__(url=url, page_set=page_set)
39
40 def RunSmoothness(self, action_runner):
41 # We scroll back and forth a few times to reduce noise in the tests.
42 action_runner.RunAction(WaitAction({'seconds': 10}))
43
44
45 class ToughCompositorCasesPageSet(page_set_module.PageSet):
46
47 """ Touch compositor sites """
48
49 def __init__(self):
50 super(ToughCompositorCasesPageSet, self).__init__(
51 credentials_path='data/credentials.json',
52 user_agent_type='mobile',
53 archive_data_file='data/tough_compositor_cases.json')
54
55 scroll_urls_list = [
56 # Why: Baseline CC scrolling page. A long page with only text. """
57 'http://jsbin.com/pixavefe/1/quiet?CC_SCROLL_TEXT_ONLY',
58 # Why: Baseline JS scrolling page. A long page with only text. """
59 'http://jsbin.com/wixadinu/1/quiet?JS_SCROLL_TEXT_ONLY',
60 # Why: Scroll by a large number of CC layers """
61 'http://jsbin.com/yakagevo/1/quiet?CC_SCROLL_200_LAYER_GRID',
62 # Why: Scroll by a large number of JS layers """
63 'http://jsbin.com/jevibahi/1/quiet?JS_SCROLL_200_LAYER_GRID',
64 ]
65
66 wait_urls_list = [
67 # Why: CC Poster circle animates many layers """
68 'http://jsbin.com/falefice/1/quiet?CC_POSTER_CIRCLE',
69 # Why: JS poster circle animates/commits many layers """
70 'http://jsbin.com/giqafofe/1/quiet?JS_POSTER_CIRCLE',
71 # Why: JS invalidation does lots of uploads """
72 'http://jsbin.com/beqojupo/1/quiet?JS_FULL_SCREEN_INVALIDATION',
73 ]
74
75 for url in scroll_urls_list:
76 self.AddPage(ToughCompositorScrollPage(url, self))
77
78 for url in wait_urls_list:
79 self.AddPage(ToughCompositorWaitPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/tough_compositor_cases_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698