OLD | NEW |
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 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
8 | 8 |
9 | 9 |
10 class MobileMemoryPage(page_module.Page): | 10 class MobileMemoryPage(page_module.Page): |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 | 71 |
72 class MobileMemoryPageSet(page_set_module.PageSet): | 72 class MobileMemoryPageSet(page_set_module.PageSet): |
73 | 73 |
74 """ Mobile sites with interesting memory characteristics """ | 74 """ Mobile sites with interesting memory characteristics """ |
75 | 75 |
76 def __init__(self): | 76 def __init__(self): |
77 super(MobileMemoryPageSet, self).__init__( | 77 super(MobileMemoryPageSet, self).__init__( |
78 credentials_path='data/credentials.json', | 78 credentials_path='data/credentials.json', |
79 user_agent_type='mobile', | 79 user_agent_type='mobile', |
80 archive_data_file='data/mobile_memory.json') | 80 archive_data_file='data/mobile_memory.json', |
| 81 bucket=page_set_module.PARTNER_BUCKET) |
81 | 82 |
82 self.AddPage(GmailPage(self)) | 83 self.AddPage(GmailPage(self)) |
83 self.AddPage(GoogleSearchPage(self)) | 84 self.AddPage(GoogleSearchPage(self)) |
84 | 85 |
85 urls_list = [ | 86 urls_list = [ |
86 # Why: Renderer process memory bloat | 87 # Why: Renderer process memory bloat |
87 'http://techcrunch.com', | 88 'http://techcrunch.com', |
88 # pylint: disable=C0301 | 89 # pylint: disable=C0301 |
89 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam
e-art-to-life-in-your-home/', | 90 'http://techcrunch.com/2014/02/17/pixel-brings-brings-old-school-video-gam
e-art-to-life-in-your-home/', |
90 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/', | 91 'http://techcrunch.com/2014/02/15/kickstarter-coins-2/', |
91 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/', | 92 'http://techcrunch.com/2014/02/15/was-y-combinator-worth-it/', |
92 ] | 93 ] |
93 | 94 |
94 for url in urls_list: | 95 for url in urls_list: |
95 self.AddPage(ScrollPage(url, self)) | 96 self.AddPage(ScrollPage(url, self)) |
OLD | NEW |