| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import story | 5 from telemetry import story |
| 6 | 6 |
| 7 # Chrome has high idle CPU usage on these sites, even after they have quiesced. | 7 # Chrome has high idle CPU usage on these sites, even after they have quiesced. |
| 8 SITES = [ | 8 SITES = [ |
| 9 # https://bugs.chromium.org/p/chromium/issues/detail?id=505990 | 9 # https://bugs.chromium.org/p/chromium/issues/detail?id=505990 |
| 10 # TODO(charliea): Temporarily disable this site, since it causes tracing to | 10 # TODO(charliea): Temporarily disable this site, since it causes tracing to |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 action_runner.Wait(self._wait_in_seconds) | 40 action_runner.Wait(self._wait_in_seconds) |
| 41 | 41 |
| 42 | 42 |
| 43 class IdleAfterLoadingStories(story.StorySet): | 43 class IdleAfterLoadingStories(story.StorySet): |
| 44 """Historically, Chrome has high CPU usage on these sites after the page has | 44 """Historically, Chrome has high CPU usage on these sites after the page has |
| 45 loaded. These user stories let Chrome idle on the page.""" | 45 loaded. These user stories let Chrome idle on the page.""" |
| 46 | 46 |
| 47 def __init__(self, wait_in_seconds=0): | 47 def __init__(self, wait_in_seconds=0): |
| 48 super(IdleAfterLoadingStories, self).__init__( | 48 super(IdleAfterLoadingStories, self).__init__( |
| 49 archive_data_file='data/idle_after_loading_stories.json', | 49 archive_data_file='data/idle_after_loading_stories.json', |
| 50 cloud_storage_bucket=story.PARTNER_BUCKET, | 50 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 51 verify_names=True) | |
| 52 | 51 |
| 53 # Chrome has high idle CPU usage on this site, even after its quiesced. | 52 # Chrome has high idle CPU usage on this site, even after its quiesced. |
| 54 # https://crbug.com/638365. | 53 # https://crbug.com/638365. |
| 55 for url in SITES: | 54 for url in SITES: |
| 56 self.AddStory(_BasePage(self, url, wait_in_seconds, url)) | 55 self.AddStory(_BasePage(self, url, wait_in_seconds, url)) |
| OLD | NEW |