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

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

Issue 1005203002: Telemetry: Move ProfileCreator to tools/perf/profile_creator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | tools/perf/generate_profile » ('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 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
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
OLDNEW
« no previous file with comments | « no previous file | tools/perf/generate_profile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698