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 telemetry import benchmark | 5 from telemetry import benchmark |
6 | 6 |
7 from measurements import startup | 7 from measurements import startup |
8 import page_sets | 8 import page_sets |
9 | 9 |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 """Measures warm startup time with a clean profile.""" | 53 """Measures warm startup time with a clean profile.""" |
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 @benchmark.Enabled('has tabs') | 61 @benchmark.Enabled('has tabs') |
62 @benchmark.Enabled('win', 'linux', 'mac') | 62 @benchmark.Enabled('win', 'linux', 'mac') |
| 63 # TODO(erikchen): Investigate source of 30s browser hang on startup. |
| 64 # http://crbug.com/473827 |
| 65 @benchmark.Disabled |
63 class StartupLargeProfileColdBlankPage(_StartupCold): | 66 class StartupLargeProfileColdBlankPage(_StartupCold): |
64 """Measures cold startup time with a large profile.""" | 67 """Measures cold startup time with a large profile.""" |
65 tag = 'cold' | 68 tag = 'cold' |
66 page_set = page_sets.BlankPageSet | 69 page_set = page_sets.BlankPageSet |
67 options = {'pageset_repeat': 1} | 70 options = {'pageset_repeat': 1} |
68 | 71 |
69 def __init__(self, max_failures=None): | 72 def __init__(self, max_failures=None): |
70 super(StartupLargeProfileColdBlankPage, self).__init__(max_failures) | 73 super(StartupLargeProfileColdBlankPage, self).__init__(max_failures) |
71 self.generated_profile_archive = "large_profile.zip" | 74 self.generated_profile_archive = "large_profile.zip" |
72 | 75 |
73 @classmethod | 76 @classmethod |
74 def Name(cls): | 77 def Name(cls): |
75 return 'startup.large_profile.cold.blank_page' | 78 return 'startup.large_profile.cold.blank_page' |
76 | 79 |
77 @benchmark.Enabled('has tabs') | 80 @benchmark.Enabled('has tabs') |
78 @benchmark.Enabled('win', 'linux', 'mac') | 81 @benchmark.Enabled('win', 'linux', 'mac') |
| 82 # TODO(erikchen): Investigate source of 30s browser hang on startup. |
| 83 # http://crbug.com/473827 |
| 84 @benchmark.Disabled |
79 class StartupLargeProfileWarmBlankPage(_StartupWarm): | 85 class StartupLargeProfileWarmBlankPage(_StartupWarm): |
80 """Measures warm startup time with a large profile.""" | 86 """Measures warm startup time with a large profile.""" |
81 tag = 'warm' | 87 tag = 'warm' |
82 page_set = page_sets.BlankPageSet | 88 page_set = page_sets.BlankPageSet |
83 options = {'pageset_repeat': 1} | 89 options = {'pageset_repeat': 1} |
84 | 90 |
85 def __init__(self, max_failures=None): | 91 def __init__(self, max_failures=None): |
86 super(StartupLargeProfileWarmBlankPage, self).__init__(max_failures) | 92 super(StartupLargeProfileWarmBlankPage, self).__init__(max_failures) |
87 self.generated_profile_archive = "large_profile.zip" | 93 self.generated_profile_archive = "large_profile.zip" |
88 | 94 |
89 @classmethod | 95 @classmethod |
90 def Name(cls): | 96 def Name(cls): |
91 return 'startup.large_profile.warm.blank_page' | 97 return 'startup.large_profile.warm.blank_page' |
OLD | NEW |