| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import logging | 4 import logging |
| 5 import py_utils | 5 import py_utils |
| 6 | 6 |
| 7 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
| 8 from telemetry.page import shared_page_state | 8 from telemetry.page import shared_page_state |
| 9 from telemetry import story | 9 from telemetry import story |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 new_tab.Close() | 43 new_tab.Close() |
| 44 | 44 |
| 45 self._DumpMemory(action_runner, 'post') | 45 self._DumpMemory(action_runner, 'post') |
| 46 | 46 |
| 47 | 47 |
| 48 class DesktopMemoryPageSet(story.StorySet): | 48 class DesktopMemoryPageSet(story.StorySet): |
| 49 | 49 |
| 50 """ Desktop sites with interesting memory characteristics """ | 50 """ Desktop sites with interesting memory characteristics """ |
| 51 | 51 |
| 52 def __init__(self): | 52 def __init__(self): |
| 53 super(DesktopMemoryPageSet, self).__init__(verify_names=True) | 53 super(DesktopMemoryPageSet, self).__init__() |
| 54 | 54 |
| 55 urls_list = [ | 55 urls_list = [ |
| 56 'http://www.google.com', | 56 'http://www.google.com', |
| 57 "http://www.live.com", | 57 "http://www.live.com", |
| 58 "http://www.youtube.com", | 58 "http://www.youtube.com", |
| 59 "http://www.wikipedia.org", | 59 "http://www.wikipedia.org", |
| 60 "http://www.flickr.com/", | 60 "http://www.flickr.com/", |
| 61 "http://www.cnn.com/", | 61 "http://www.cnn.com/", |
| 62 "http://www.adobe.com/", | 62 "http://www.adobe.com/", |
| 63 "http://www.aol.com/", | 63 "http://www.aol.com/", |
| 64 "http://www.cnet.com/", | 64 "http://www.cnet.com/", |
| 65 "http://www.godaddy.com/", | 65 "http://www.godaddy.com/", |
| 66 "http://www.walmart.com/", | 66 "http://www.walmart.com/", |
| 67 "http://www.skype.com/", | 67 "http://www.skype.com/", |
| 68 ] | 68 ] |
| 69 | 69 |
| 70 for url in urls_list: | 70 for url in urls_list: |
| 71 self.AddStory(DesktopMemoryPage(url, self)) | 71 self.AddStory(DesktopMemoryPage(url, self)) |
| OLD | NEW |