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 |
| 6 |
5 from measurements import startup | 7 from measurements import startup |
6 import page_sets | 8 import page_sets |
7 from telemetry import benchmark | |
8 | 9 |
9 | 10 |
10 class _StartupCold(benchmark.Benchmark): | 11 class _StartupCold(benchmark.Benchmark): |
11 """Measures cold startup time with a clean profile.""" | 12 """Measures cold startup time with a clean profile.""" |
12 options = {'pageset_repeat': 5} | 13 options = {'pageset_repeat': 5} |
13 | 14 |
14 @classmethod | 15 @classmethod |
15 def Name(cls): | 16 def Name(cls): |
16 return 'startup' | 17 return 'startup' |
17 | 18 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 50 |
50 @benchmark.Enabled('has tabs') | 51 @benchmark.Enabled('has tabs') |
51 class StartupWarmBlankPage(_StartupWarm): | 52 class StartupWarmBlankPage(_StartupWarm): |
52 """Measures warm startup time with a clean profile.""" | 53 """Measures warm startup time with a clean profile.""" |
53 tag = 'warm' | 54 tag = 'warm' |
54 page_set = page_sets.BlankPageSet | 55 page_set = page_sets.BlankPageSet |
55 | 56 |
56 @classmethod | 57 @classmethod |
57 def Name(cls): | 58 def Name(cls): |
58 return 'startup.warm.blank_page' | 59 return 'startup.warm.blank_page' |
OLD | NEW |