| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from core import perf_benchmark | 5 from core import perf_benchmark |
| 6 from measurements import startup | 6 from measurements import startup |
| 7 import page_sets | 7 import page_sets |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 | 9 |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 tag = 'warm' | 54 tag = 'warm' |
| 55 page_set = page_sets.BlankPageSet | 55 page_set = page_sets.BlankPageSet |
| 56 | 56 |
| 57 @classmethod | 57 @classmethod |
| 58 def Name(cls): | 58 def Name(cls): |
| 59 return 'startup.warm.blank_page' | 59 return 'startup.warm.blank_page' |
| 60 | 60 |
| 61 | 61 |
| 62 @benchmark.Disabled('reference', # http://crbug.com/476882 | 62 @benchmark.Disabled('reference', # http://crbug.com/476882 |
| 63 'android', # http://crbug.com/481919 | 63 'android', # http://crbug.com/481919 |
| 64 'snowleopard', # http://crbug.com/605485 |
| 64 'content-shell') # No pregenerated profiles. | 65 'content-shell') # No pregenerated profiles. |
| 65 class StartupLargeProfileColdBlankPage(_StartupCold): | 66 class StartupLargeProfileColdBlankPage(_StartupCold): |
| 66 """Measures cold startup time with a large profile.""" | 67 """Measures cold startup time with a large profile.""" |
| 67 tag = 'cold' | 68 tag = 'cold' |
| 68 page_set = page_sets.BlankPageSetWithLargeProfile | 69 page_set = page_sets.BlankPageSetWithLargeProfile |
| 69 options = {'pageset_repeat': 3} | 70 options = {'pageset_repeat': 3} |
| 70 | 71 |
| 71 def __init__(self, max_failures=None): | 72 def __init__(self, max_failures=None): |
| 72 super(StartupLargeProfileColdBlankPage, self).__init__(max_failures) | 73 super(StartupLargeProfileColdBlankPage, self).__init__(max_failures) |
| 73 | 74 |
| 74 def SetExtraBrowserOptions(self, options): | 75 def SetExtraBrowserOptions(self, options): |
| 75 options.browser_startup_timeout = 10 * 60 | 76 options.browser_startup_timeout = 10 * 60 |
| 76 | 77 |
| 77 @classmethod | 78 @classmethod |
| 78 def Name(cls): | 79 def Name(cls): |
| 79 return 'startup.large_profile.cold.blank_page' | 80 return 'startup.large_profile.cold.blank_page' |
| 80 | 81 |
| 81 | 82 |
| 82 @benchmark.Disabled('reference', # http://crbug.com/476882 | 83 @benchmark.Disabled('reference', # http://crbug.com/476882 |
| 83 'android', # http://crbug.com/481919 | 84 'android', # http://crbug.com/481919 |
| 85 'snowleopard', # http://crbug.com/605485 |
| 84 'content-shell') # No pregenerated profiles. | 86 'content-shell') # No pregenerated profiles. |
| 85 class StartupLargeProfileWarmBlankPage(_StartupWarm): | 87 class StartupLargeProfileWarmBlankPage(_StartupWarm): |
| 86 """Measures warm startup time with a large profile.""" | 88 """Measures warm startup time with a large profile.""" |
| 87 tag = 'warm' | 89 tag = 'warm' |
| 88 page_set = page_sets.BlankPageSetWithLargeProfile | 90 page_set = page_sets.BlankPageSetWithLargeProfile |
| 89 options = {'pageset_repeat': 4} | 91 options = {'pageset_repeat': 4} |
| 90 | 92 |
| 91 def __init__(self, max_failures=None): | 93 def __init__(self, max_failures=None): |
| 92 super(StartupLargeProfileWarmBlankPage, self).__init__(max_failures) | 94 super(StartupLargeProfileWarmBlankPage, self).__init__(max_failures) |
| 93 | 95 |
| 94 def SetExtraBrowserOptions(self, options): | 96 def SetExtraBrowserOptions(self, options): |
| 95 options.browser_startup_timeout = 10 * 60 | 97 options.browser_startup_timeout = 10 * 60 |
| 96 | 98 |
| 97 @classmethod | 99 @classmethod |
| 98 def Name(cls): | 100 def Name(cls): |
| 99 return 'startup.large_profile.warm.blank_page' | 101 return 'startup.large_profile.warm.blank_page' |
| OLD | NEW |