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

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

Issue 2927883002: Explicitly setting story names for thread_times benchmarks (Closed)
Patch Set: Explicitly setting story names for thread_times benchmarks Created 3 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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 class ToughCompositorPage(page_module.Page): 9 class ToughCompositorPage(page_module.Page):
10 10
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(ToughCompositorPage, self).__init__( 12 super(ToughCompositorPage, self).__init__(
13 url=url, page_set=page_set, credentials_path = 'data/credentials.json', 13 url=url, page_set=page_set, credentials_path = 'data/credentials.json',
14 shared_page_state_class=shared_page_state.SharedMobilePageState) 14 shared_page_state_class=shared_page_state.SharedMobilePageState,
15 name=url)
15 self.archive_data_file = 'data/tough_compositor_cases.json' 16 self.archive_data_file = 'data/tough_compositor_cases.json'
16 17
17 def RunNavigateSteps(self, action_runner): 18 def RunNavigateSteps(self, action_runner):
18 super(ToughCompositorPage, self).RunNavigateSteps(action_runner) 19 super(ToughCompositorPage, self).RunNavigateSteps(action_runner)
19 # TODO(epenner): Remove this wait (http://crbug.com/366933) 20 # TODO(epenner): Remove this wait (http://crbug.com/366933)
20 action_runner.Wait(5) 21 action_runner.Wait(5)
21 22
22 class ToughCompositorScrollPage(ToughCompositorPage): 23 class ToughCompositorScrollPage(ToughCompositorPage):
23 24
24 def __init__(self, url, page_set): 25 def __init__(self, url, page_set):
(...skipping 15 matching lines...) Expand all
40 action_runner.Wait(8) 41 action_runner.Wait(8)
41 42
42 43
43 class ToughCompositorCasesPageSet(story.StorySet): 44 class ToughCompositorCasesPageSet(story.StorySet):
44 45
45 """ Touch compositor sites """ 46 """ Touch compositor sites """
46 47
47 def __init__(self): 48 def __init__(self):
48 super(ToughCompositorCasesPageSet, self).__init__( 49 super(ToughCompositorCasesPageSet, self).__init__(
49 archive_data_file='data/tough_compositor_cases.json', 50 archive_data_file='data/tough_compositor_cases.json',
50 cloud_storage_bucket=story.PUBLIC_BUCKET) 51 cloud_storage_bucket=story.PUBLIC_BUCKET,
52 verify_names=True)
51 53
52 scroll_urls_list = [ 54 scroll_urls_list = [
53 # Why: Baseline CC scrolling page. A long page with only text. """ 55 # Why: Baseline CC scrolling page. A long page with only text. """
54 'http://jsbin.com/pixavefe/1/quiet?CC_SCROLL_TEXT_ONLY', 56 'http://jsbin.com/pixavefe/1/quiet?CC_SCROLL_TEXT_ONLY',
55 # Why: Baseline JS scrolling page. A long page with only text. """ 57 # Why: Baseline JS scrolling page. A long page with only text. """
56 'http://jsbin.com/wixadinu/2/quiet?JS_SCROLL_TEXT_ONLY', 58 'http://jsbin.com/wixadinu/2/quiet?JS_SCROLL_TEXT_ONLY',
57 # Why: Scroll by a large number of CC layers """ 59 # Why: Scroll by a large number of CC layers """
58 'http://jsbin.com/yakagevo/1/quiet?CC_SCROLL_200_LAYER_GRID', 60 'http://jsbin.com/yakagevo/1/quiet?CC_SCROLL_200_LAYER_GRID',
59 # Why: Scroll by a large number of JS layers """ 61 # Why: Scroll by a large number of JS layers """
60 'http://jsbin.com/jevibahi/4/quiet?JS_SCROLL_200_LAYER_GRID', 62 'http://jsbin.com/jevibahi/4/quiet?JS_SCROLL_200_LAYER_GRID',
61 ] 63 ]
62 64
63 wait_urls_list = [ 65 wait_urls_list = [
64 # Why: CC Poster circle animates many layers """ 66 # Why: CC Poster circle animates many layers """
65 'http://jsbin.com/falefice/1/quiet?CC_POSTER_CIRCLE', 67 'http://jsbin.com/falefice/1/quiet?CC_POSTER_CIRCLE',
66 # Why: JS poster circle animates/commits many layers """ 68 # Why: JS poster circle animates/commits many layers """
67 'http://jsbin.com/giqafofe/1/quiet?JS_POSTER_CIRCLE', 69 'http://jsbin.com/giqafofe/1/quiet?JS_POSTER_CIRCLE',
68 # Why: JS invalidation does lots of uploads """ 70 # Why: JS invalidation does lots of uploads """
69 'http://jsbin.com/beqojupo/1/quiet?JS_FULL_SCREEN_INVALIDATION', 71 'http://jsbin.com/beqojupo/1/quiet?JS_FULL_SCREEN_INVALIDATION',
70 # Why: Creates a large number of new tilings """ 72 # Why: Creates a large number of new tilings """
71 'http://jsbin.com/covoqi/1/quiet?NEW_TILINGS', 73 'http://jsbin.com/covoqi/1/quiet?NEW_TILINGS',
72 ] 74 ]
73 75
74 for url in scroll_urls_list: 76 for url in scroll_urls_list:
75 self.AddStory(ToughCompositorScrollPage(url, self)) 77 self.AddStory(ToughCompositorScrollPage(url, self))
76 78
77 for url in wait_urls_list: 79 for url in wait_urls_list:
78 self.AddStory(ToughCompositorWaitPage(url, self)) 80 self.AddStory(ToughCompositorWaitPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/simple_mobile_sites.py ('k') | tools/perf/page_sets/tough_scrolling_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698