Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1150)

Side by Side Diff: tools/perf/benchmarks/session_restore.py

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/service_worker.py ('k') | tools/perf/benchmarks/skpicture_printer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 telemetry import benchmark
9
8 from measurements import session_restore 10 from measurements import session_restore
9 import page_sets 11 import page_sets
10 from profile_creators import profile_generator 12 from profile_creators import profile_generator
11 from profile_creators import small_profile_creator 13 from profile_creators import small_profile_creator
12 from telemetry import benchmark
13 14
14 15
15 class _SessionRestoreTypical25(benchmark.Benchmark): 16 class _SessionRestoreTypical25(benchmark.Benchmark):
16 """Base Benchmark class for session restore benchmarks. 17 """Base Benchmark class for session restore benchmarks.
17 18
18 A cold start means none of the Chromium files are in the disk cache. 19 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. 20 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. 21 For warm tests, you should repeat the page set to ensure it's cached.
21 22
22 Use Typical25PageSet to match what the SmallProfileCreator uses. 23 Use Typical25PageSet to match what the SmallProfileCreator uses.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 The first result is discarded. 93 The first result is discarded.
93 """ 94 """
94 tag = 'warm' 95 tag = 'warm'
95 options = {'pageset_repeat': 20} 96 options = {'pageset_repeat': 20}
96 97
97 @classmethod 98 @classmethod
98 def Name(cls): 99 def Name(cls):
99 return 'session_restore.warm.typical_25' 100 return 'session_restore.warm.typical_25'
100 101
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/service_worker.py ('k') | tools/perf/benchmarks/skpicture_printer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698