| 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.page import page_test | 5 from telemetry.page import legacy_page_test |
| 6 | 6 |
| 7 from metrics import keychain_metric | 7 from metrics import keychain_metric |
| 8 from metrics import startup_metric | 8 from metrics import startup_metric |
| 9 | 9 |
| 10 | 10 |
| 11 class Startup(page_test.PageTest): | 11 class Startup(legacy_page_test.LegacyPageTest): |
| 12 """Performs a measurement of Chromium's startup performance. | 12 """Performs a measurement of Chromium's startup performance. |
| 13 | 13 |
| 14 Uses cold start if cold==True, otherwise uses warm start. A cold start means | 14 Uses cold start if cold==True, otherwise uses warm start. A cold start means |
| 15 none of the Chromium files are in the disk cache. A warm start assumes the OS | 15 none of the Chromium files are in the disk cache. A warm start assumes the OS |
| 16 has already cached much of Chromium's content. For warm tests, you should | 16 has already cached much of Chromium's content. For warm tests, you should |
| 17 repeat the page set to ensure it's cached. | 17 repeat the page set to ensure it's cached. |
| 18 """ | 18 """ |
| 19 | 19 |
| 20 def __init__(self, cold=False): | 20 def __init__(self, cold=False): |
| 21 super(Startup, self).__init__(needs_browser_restart_after_each_page=True) | 21 super(Startup, self).__init__(needs_browser_restart_after_each_page=True) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 none of the Chromium files are in the disk cache. A warm start assumes the OS | 41 none of the Chromium files are in the disk cache. A warm start assumes the OS |
| 42 has already cached much of Chromium's content. For warm tests, you should | 42 has already cached much of Chromium's content. For warm tests, you should |
| 43 repeat the page set to ensure it's cached. | 43 repeat the page set to ensure it's cached. |
| 44 | 44 |
| 45 The startup URL is taken from the page's startup_url. This | 45 The startup URL is taken from the page's startup_url. This |
| 46 allows the testing of multiple different URLs in a single benchmark. | 46 allows the testing of multiple different URLs in a single benchmark. |
| 47 """ | 47 """ |
| 48 | 48 |
| 49 def __init__(self, cold=False): | 49 def __init__(self, cold=False): |
| 50 super(StartWithUrl, self).__init__(cold=cold) | 50 super(StartWithUrl, self).__init__(cold=cold) |
| OLD | NEW |