| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 |
| 11 class _StartupWarm(perf_benchmark.PerfBenchmark): | 11 class _StartupWarm(perf_benchmark.PerfBenchmark): |
| 12 """Measures warm startup time with a clean profile.""" | 12 """Measures warm startup time with a clean profile.""" |
| 13 options = {'pageset_repeat': 5} | 13 options = {'pageset_repeat': 5} |
| 14 | 14 |
| 15 @classmethod | 15 @classmethod |
| 16 def Name(cls): | 16 def Name(cls): |
| 17 return 'chrome_signin_starup' | 17 return 'chrome_signin_starup' |
| 18 | 18 |
| 19 def CreatePageTest(self, options): | 19 def CreatePageTest(self, options): |
| 20 return startup.Startup(cold=False) | 20 return startup.Startup(cold=False) |
| 21 | 21 |
| 22 | 22 |
| 23 @benchmark.Disabled # crbug.com/551938 | 23 @benchmark.Disabled('all') # crbug.com/551938 |
| 24 # On android logging in is done through system accounts workflow. | 24 # On android logging in is done through system accounts workflow. |
| 25 @benchmark.Disabled('android', | 25 @benchmark.Disabled('android', |
| 26 'reference') # crbug.com/499312 | 26 'reference') # crbug.com/499312 |
| 27 class SigninStartup(_StartupWarm): | 27 class SigninStartup(_StartupWarm): |
| 28 """Measures warm startup time of signing a profile into Chrome.""" | 28 """Measures warm startup time of signing a profile into Chrome.""" |
| 29 page_set = page_sets.ChromeSigninPageSet | 29 page_set = page_sets.ChromeSigninPageSet |
| 30 | 30 |
| 31 @classmethod | 31 @classmethod |
| 32 def Name(cls): | 32 def Name(cls): |
| 33 return 'startup.warm.chrome_signin' | 33 return 'startup.warm.chrome_signin' |
| OLD | NEW |