| OLD | NEW |
| 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 | 4 |
| 5 import re | 5 import re |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 cloud_storage_bucket=story.PARTNER_BUCKET, | 71 cloud_storage_bucket=story.PARTNER_BUCKET, |
| 72 verify_names=True) | 72 verify_names=True) |
| 73 | 73 |
| 74 for url in top_10_mobile.URL_LIST: | 74 for url in top_10_mobile.URL_LIST: |
| 75 # We name pages so their foreground/background counterparts are easy | 75 # We name pages so their foreground/background counterparts are easy |
| 76 # to identify. For example 'http://google.com' becomes | 76 # to identify. For example 'http://google.com' becomes |
| 77 # 'http_google_com' and 'after_http_google_com' respectively. | 77 # 'http_google_com' and 'after_http_google_com' respectively. |
| 78 name = re.sub(r'\W+', '_', url) | 78 name = re.sub(r'\W+', '_', url) |
| 79 self.AddStory(ForegroundPage(self, name, url)) | 79 self.AddStory(ForegroundPage(self, name, url)) |
| 80 self.AddStory(BackgroundPage(self, 'after_' + name)) | 80 self.AddStory(BackgroundPage(self, 'after_' + name)) |
| 81 | |
| 82 | |
| 83 class MemoryTop10MobileRealistic(MemoryTop10Mobile): | |
| 84 """Top 10 mobile user story in realistic mode. | |
| 85 | |
| 86 This means, in particular, neither forced GCs nor clearing caches. | |
| 87 """ | |
| 88 DETERMINISTIC_MODE = False | |
| OLD | NEW |