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

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

Issue 927763002: [Telemetry] Change rasterize_and_record_micro to use key_mobile_sites pageset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 class KeyMobileSitesCyclerPage(page_module.Page): 10 class KeyMobileSitesPage(page_module.Page):
11 11
12 def __init__(self, url, page_set, name='', labels=None, 12 def __init__(self, url, page_set, name='', labels=None,
13 action_on_load_complete=False): 13 action_on_load_complete=False):
14 super(KeyMobileSitesCyclerPage, self).__init__( 14 super(KeyMobileSitesPage, self).__init__(
15 url=url, page_set=page_set, name=name, 15 url=url, page_set=page_set, name=name,
16 credentials_path='data/credentials.json', labels=labels) 16 credentials_path='data/credentials.json', labels=labels)
17 self.user_agent_type = 'mobile' 17 self.user_agent_type = 'mobile'
18 self.archive_data_file = 'data/key_mobile_sites.json' 18 self.archive_data_file = 'data/key_mobile_sites.json'
19 self.action_on_load_complete = action_on_load_complete 19 self.action_on_load_complete = action_on_load_complete
20 20
21 21
22 class KeyMobileSitesCyclerPageSet(page_set_module.PageSet): 22 class KeyMobileSitesPageSet(page_set_module.PageSet):
23 23
24 """ Key mobile sites with smooth interactions. """ 24 """ Key mobile sites with smooth interactions. """
25 25
26 def __init__(self): 26 def __init__(self):
27 super(KeyMobileSitesCyclerPageSet, self).__init__( 27 super(KeyMobileSitesPageSet, self).__init__(
28 user_agent_type='mobile', 28 user_agent_type='mobile',
29 archive_data_file='data/key_mobile_sites_cycler.json', 29 archive_data_file='data/key_mobile_sites.json',
30 bucket=page_set_module.PARTNER_BUCKET) 30 bucket=page_set_module.PARTNER_BUCKET)
31 31
32 32
33 # Add pages with predefined classes that contain custom navigation logic. 33 # Add pages with predefined classes that contain custom navigation logic.
34 predefined_page_classes = [ 34 predefined_page_classes = [
35 key_mobile_sites_pages.CapitolVolkswagenPage, 35 key_mobile_sites_pages.CapitolVolkswagenPage,
36 key_mobile_sites_pages.TheVergeArticlePage, 36 key_mobile_sites_pages.TheVergeArticlePage,
37 key_mobile_sites_pages.CnnArticlePage, 37 key_mobile_sites_pages.CnnArticlePage,
38 key_mobile_sites_pages.FacebookPage, 38 key_mobile_sites_pages.FacebookPage,
39 key_mobile_sites_pages.YoutubeMobilePage, 39 key_mobile_sites_pages.YoutubeMobilePage,
(...skipping 11 matching lines...) Expand all
51 # Page behaves non-deterministically, replaced with test version for now. 51 # Page behaves non-deterministically, replaced with test version for now.
52 # self.AddUserStory(GroupClonedPage(self)) 52 # self.AddUserStory(GroupClonedPage(self))
53 # mean_input_event_latency cannot be tracked correctly for 53 # mean_input_event_latency cannot be tracked correctly for
54 # GroupClonedListImagesPage. 54 # GroupClonedListImagesPage.
55 # See crbug.com/409086. 55 # See crbug.com/409086.
56 # self.AddUserStory(GroupClonedListImagesPage(self)) 56 # self.AddUserStory(GroupClonedListImagesPage(self))
57 57
58 # Add pages with custom labels. 58 # Add pages with custom labels.
59 59
60 # Why: Top news site. 60 # Why: Top news site.
61 self.AddUserStory(KeyMobileSitesCyclerPage( 61 self.AddUserStory(KeyMobileSitesPage(
62 url='http://nytimes.com/', page_set=self, labels=['fastpath'])) 62 url='http://nytimes.com/', page_set=self, labels=['fastpath']))
63 63
64 # Why: Image-heavy site. 64 # Why: Image-heavy site.
65 self.AddUserStory(KeyMobileSitesCyclerPage( 65 self.AddUserStory(KeyMobileSitesPage(
66 url='http://cuteoverload.com', page_set=self, labels=['fastpath'])) 66 url='http://cuteoverload.com', page_set=self, labels=['fastpath']))
67 67
68 # Why: #11 (Alexa global), google property; some blogger layouts 68 # Why: #11 (Alexa global), google property; some blogger layouts
69 # have infinite scroll but more interesting. 69 # have infinite scroll but more interesting.
70 self.AddUserStory(KeyMobileSitesCyclerPage( 70 self.AddUserStory(KeyMobileSitesPage(
71 url='http://googlewebmastercentral.blogspot.com/', 71 url='http://googlewebmastercentral.blogspot.com/',
72 page_set=self, name='Blogger')) 72 page_set=self, name='Blogger'))
73 73
74 # Why: #18 (Alexa global), Picked an interesting post """ 74 # Why: #18 (Alexa global), Picked an interesting post """
75 self.AddUserStory(KeyMobileSitesCyclerPage( 75 self.AddUserStory(KeyMobileSitesPage(
76 # pylint: disable=line-too-long 76 # pylint: disable=line-too-long
77 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/', 77 url='http://en.blog.wordpress.com/2012/09/04/freshly-pressed-editors-picks -for-august-2012/',
78 page_set=self, 78 page_set=self,
79 name='Wordpress')) 79 name='Wordpress'))
80 80
81 # Why: #6 (Alexa) most visited worldwide, picked an interesting page 81 # Why: #6 (Alexa) most visited worldwide, picked an interesting page
82 self.AddUserStory(KeyMobileSitesCyclerPage( 82 self.AddUserStory(KeyMobileSitesPage(
83 url='http://en.wikipedia.org/wiki/Wikipedia', 83 url='http://en.wikipedia.org/wiki/Wikipedia',
84 page_set=self, 84 page_set=self,
85 name='Wikipedia (1 tab)')) 85 name='Wikipedia (1 tab)'))
86 86
87 # Why: Wikipedia page with a delayed scroll start 87 # Why: Wikipedia page with a delayed scroll start
88 self.AddUserStory(KeyMobileSitesCyclerPage( 88 self.AddUserStory(KeyMobileSitesPage(
89 url='http://en.wikipedia.org/wiki/Wikipedia', 89 url='http://en.wikipedia.org/wiki/Wikipedia',
90 page_set=self, 90 page_set=self,
91 name='Wikipedia (1 tab) - delayed scroll start', 91 name='Wikipedia (1 tab) - delayed scroll start',
92 action_on_load_complete=True)) 92 action_on_load_complete=True))
93 93
94 # Why: #8 (Alexa global), picked an interesting page 94 # Why: #8 (Alexa global), picked an interesting page
95 # Forbidden (Rate Limit Exceeded) 95 # Forbidden (Rate Limit Exceeded)
96 # self.AddUserStory(KeyMobileSitesCyclerPage( 96 # self.AddUserStory(KeyMobileSitesPage(
97 # url='http://twitter.com/katyperry', page_set=self, name='Twitter')) 97 # url='http://twitter.com/katyperry', page_set=self, name='Twitter'))
98 98
99 # Why: #37 (Alexa global) """ 99 # Why: #37 (Alexa global) """
100 self.AddUserStory(KeyMobileSitesCyclerPage( 100 self.AddUserStory(KeyMobileSitesPage(
101 url='http://pinterest.com', 101 url='http://pinterest.com',
102 page_set=self, 102 page_set=self,
103 name='Pinterest')) 103 name='Pinterest'))
104 104
105 # Why: #1 sports. 105 # Why: #1 sports.
106 # Fails often; crbug.com/249722' 106 # Fails often; crbug.com/249722'
107 # self.AddUserStory(KeyMobileSitesCyclerPage( 107 # self.AddUserStory(KeyMobileSitesPage(
108 # url='http://espn.go.com', page_set=self, name='ESPN')) 108 # url='http://espn.go.com', page_set=self, name='ESPN'))
109 # Why: crbug.com/231413 109 # Why: crbug.com/231413
110 # Doesn't scroll; crbug.com/249736 110 # Doesn't scroll; crbug.com/249736
111 # self.AddUserStory(KeyMobileSitesCyclerPage( 111 # self.AddUserStory(KeyMobileSitesPage(
112 # url='http://forecast.io', page_set=self)) 112 # url='http://forecast.io', page_set=self))
113 # Why: crbug.com/169827 113 # Why: crbug.com/169827
114 self.AddUserStory(KeyMobileSitesCyclerPage( 114 self.AddUserStory(KeyMobileSitesPage(
115 url='http://slashdot.org/', page_set=self, labels=['fastpath'])) 115 url='http://slashdot.org/', page_set=self, labels=['fastpath']))
116 116
117 # Why: #5 Alexa news """ 117 # Why: #5 Alexa news """
118 118
119 self.AddUserStory(KeyMobileSitesCyclerPage( 119 self.AddUserStory(KeyMobileSitesPage(
120 url='http://www.reddit.com/r/programming/comments/1g96ve', 120 url='http://www.reddit.com/r/programming/comments/1g96ve',
121 page_set=self, labels=['fastpath'])) 121 page_set=self, labels=['fastpath']))
122 122
123 # Why: Problematic use of fixed position elements """ 123 # Why: Problematic use of fixed position elements """
124 self.AddUserStory(KeyMobileSitesCyclerPage( 124 self.AddUserStory(KeyMobileSitesPage(
125 url='http://www.boingboing.net', page_set=self, labels=['fastpath'])) 125 url='http://www.boingboing.net', page_set=self, labels=['fastpath']))
126 126
127 # Add simple pages with no custom navigation logic or labels. 127 # Add simple pages with no custom navigation logic or labels.
128 urls_list = [ 128 urls_list = [
129 # Why: Social; top Google property; Public profile; infinite scrolls. 129 # Why: Social; top Google property; Public profile; infinite scrolls.
130 # pylint: disable=line-too-long 130 # pylint: disable=line-too-long
131 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp romo', 131 'https://plus.google.com/app/basic/110031535020051778989/posts?source=appp romo',
132 # Why: crbug.com/242544 132 # Why: crbug.com/242544
133 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-' 133 ('http://www.androidpolice.com/2012/10/03/rumor-evidence-mounts-that-an-'
134 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-' 134 'lg-optimus-g-nexus-is-coming-along-with-a-nexus-phone-certification-'
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 # Why: Top search engine 169 # Why: Top search engine
170 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' 170 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&'
171 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), 171 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'),
172 # Why: Top search engine 172 # Why: Top search engine
173 'http://www.bing.com/search?q=sloths', 173 'http://www.bing.com/search?q=sloths',
174 # Why: Good example of poor initial scrolling 174 # Why: Good example of poor initial scrolling
175 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' 175 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans'
176 ] 176 ]
177 177
178 for url in urls_list: 178 for url in urls_list:
179 self.AddUserStory(KeyMobileSitesCyclerPage(url, self)) 179 self.AddUserStory(KeyMobileSitesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/key_mobile_sites_smooth.json ('k') | tools/perf/page_sets/key_mobile_sites_cycler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698