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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « tools/perf/page_sets/media_cns_cases.py ('k') | tools/perf/page_sets/mse_cases.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 from telemetry import story
5 from telemetry.page import page as page_module
4 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module
7 7
8 8
9 class MobileMemoryPage(page_module.Page): 9 class MobileMemoryPage(page_module.Page):
10 10
11 def __init__(self, url, page_set): 11 def __init__(self, url, page_set):
12 super(MobileMemoryPage, self).__init__( 12 super(MobileMemoryPage, 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 self.archive_data_file = 'data/mobile_memory.json' 15 self.archive_data_file = 'data/mobile_memory.json'
16 16
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 class ScrollPage(MobileMemoryPage): 66 class ScrollPage(MobileMemoryPage):
67 67
68 def __init__(self, url, page_set): 68 def __init__(self, url, page_set):
69 super(ScrollPage, self).__init__(url=url, page_set=page_set) 69 super(ScrollPage, self).__init__(url=url, page_set=page_set)
70 70
71 def RunPageInteractions(self, action_runner): 71 def RunPageInteractions(self, action_runner):
72 with action_runner.CreateGestureInteraction('ScrollAction'): 72 with action_runner.CreateGestureInteraction('ScrollAction'):
73 action_runner.ScrollPage() 73 action_runner.ScrollPage()
74 74
75 75
76 class MobileMemoryPageSet(page_set_module.PageSet): 76 class MobileMemoryPageSet(story.StorySet):
77 77
78 """ Mobile sites with interesting memory characteristics """ 78 """ Mobile sites with interesting memory characteristics """
79 79
80 def __init__(self): 80 def __init__(self):
81 super(MobileMemoryPageSet, self).__init__( 81 super(MobileMemoryPageSet, self).__init__(
82 archive_data_file='data/mobile_memory.json', 82 archive_data_file='data/mobile_memory.json',
83 bucket=page_set_module.PARTNER_BUCKET) 83 cloud_storage_bucket=story.PARTNER_BUCKET)
84 84
85 self.AddUserStory(GmailPage(self)) 85 self.AddUserStory(GmailPage(self))
86 self.AddUserStory(GoogleSearchPage(self)) 86 self.AddUserStory(GoogleSearchPage(self))
87 87
88 urls_list = [ 88 urls_list = [
89 # Why: Renderer process memory bloat 89 # Why: Renderer process memory bloat
90 'http://techcrunch.com', 90 'http://techcrunch.com',
91 # pylint: disable=C0301 91 # pylint: disable=C0301
92 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam e-art-to-life-in-your-home/', 92 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam e-art-to-life-in-your-home/',
93 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/', 93 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/',
94 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/', 94 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/',
95 ] 95 ]
96 96
97 for url in urls_list: 97 for url in urls_list:
98 self.AddUserStory(ScrollPage(url, self)) 98 self.AddUserStory(ScrollPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/media_cns_cases.py ('k') | tools/perf/page_sets/mse_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698