| 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 import os | 5 import os |
| 6 import tempfile | 6 import tempfile |
| 7 | 7 |
| 8 from measurements import session_restore | 8 from measurements import session_restore |
| 9 import page_sets | 9 import page_sets |
| 10 from profile_creators import profile_generator |
| 10 from profile_creators import small_profile_creator | 11 from profile_creators import small_profile_creator |
| 11 from telemetry import benchmark | 12 from telemetry import benchmark |
| 12 from telemetry.page import profile_generator | |
| 13 | 13 |
| 14 | 14 |
| 15 class _SessionRestoreTypical25(benchmark.Benchmark): | 15 class _SessionRestoreTypical25(benchmark.Benchmark): |
| 16 """Base Benchmark class for session restore benchmarks. | 16 """Base Benchmark class for session restore benchmarks. |
| 17 | 17 |
| 18 A cold start means none of the Chromium files are in the disk cache. | 18 A cold start means none of the Chromium files are in the disk cache. |
| 19 A warm start assumes the OS has already cached much of Chromium's content. | 19 A warm start assumes the OS has already cached much of Chromium's content. |
| 20 For warm tests, you should repeat the page set to ensure it's cached. | 20 For warm tests, you should repeat the page set to ensure it's cached. |
| 21 | 21 |
| 22 Use Typical25PageSet to match what the SmallProfileCreator uses. | 22 Use Typical25PageSet to match what the SmallProfileCreator uses. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 The first result is discarded. | 92 The first result is discarded. |
| 93 """ | 93 """ |
| 94 tag = 'warm' | 94 tag = 'warm' |
| 95 options = {'pageset_repeat': 20} | 95 options = {'pageset_repeat': 20} |
| 96 | 96 |
| 97 @classmethod | 97 @classmethod |
| 98 def Name(cls): | 98 def Name(cls): |
| 99 return 'session_restore.warm.typical_25' | 99 return 'session_restore.warm.typical_25' |
| 100 | 100 |
| OLD | NEW |