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 'content-shell', 'mandoline') # No pregenerated profiles. | 64 'content-shell') # No pregenerated profiles. |
65 class StartupLargeProfileColdBlankPage(_StartupCold): | 65 class StartupLargeProfileColdBlankPage(_StartupCold): |
66 """Measures cold startup time with a large profile.""" | 66 """Measures cold startup time with a large profile.""" |
67 tag = 'cold' | 67 tag = 'cold' |
68 page_set = page_sets.BlankPageSetWithLargeProfile | 68 page_set = page_sets.BlankPageSetWithLargeProfile |
69 options = {'pageset_repeat': 3} | 69 options = {'pageset_repeat': 3} |
70 | 70 |
71 def __init__(self, max_failures=None): | 71 def __init__(self, max_failures=None): |
72 super(StartupLargeProfileColdBlankPage, self).__init__(max_failures) | 72 super(StartupLargeProfileColdBlankPage, self).__init__(max_failures) |
73 | 73 |
74 def SetExtraBrowserOptions(self, options): | 74 def SetExtraBrowserOptions(self, options): |
75 options.browser_startup_timeout = 10 * 60 | 75 options.browser_startup_timeout = 10 * 60 |
76 | 76 |
77 @classmethod | 77 @classmethod |
78 def Name(cls): | 78 def Name(cls): |
79 return 'startup.large_profile.cold.blank_page' | 79 return 'startup.large_profile.cold.blank_page' |
80 | 80 |
81 | 81 |
82 @benchmark.Disabled('reference', # http://crbug.com/476882 | 82 @benchmark.Disabled('reference', # http://crbug.com/476882 |
83 'android', # http://crbug.com/481919 | 83 'android', # http://crbug.com/481919 |
84 'content-shell', 'mandoline') # No pregenerated profiles. | 84 'content-shell') # No pregenerated profiles. |
85 class StartupLargeProfileWarmBlankPage(_StartupWarm): | 85 class StartupLargeProfileWarmBlankPage(_StartupWarm): |
86 """Measures warm startup time with a large profile.""" | 86 """Measures warm startup time with a large profile.""" |
87 tag = 'warm' | 87 tag = 'warm' |
88 page_set = page_sets.BlankPageSetWithLargeProfile | 88 page_set = page_sets.BlankPageSetWithLargeProfile |
89 options = {'pageset_repeat': 4} | 89 options = {'pageset_repeat': 4} |
90 | 90 |
91 def __init__(self, max_failures=None): | 91 def __init__(self, max_failures=None): |
92 super(StartupLargeProfileWarmBlankPage, self).__init__(max_failures) | 92 super(StartupLargeProfileWarmBlankPage, self).__init__(max_failures) |
93 | 93 |
94 def SetExtraBrowserOptions(self, options): | 94 def SetExtraBrowserOptions(self, options): |
95 options.browser_startup_timeout = 10 * 60 | 95 options.browser_startup_timeout = 10 * 60 |
96 | 96 |
97 @classmethod | 97 @classmethod |
98 def Name(cls): | 98 def Name(cls): |
99 return 'startup.large_profile.warm.blank_page' | 99 return 'startup.large_profile.warm.blank_page' |
OLD | NEW |