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

Side by Side Diff: tools/perf/measurements/startup.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
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 from telemetry.page import page_test
6
5 from metrics import keychain_metric 7 from metrics import keychain_metric
6 from metrics import startup_metric 8 from metrics import startup_metric
7 from telemetry.page import page_test
8 9
9 10
10 class Startup(page_test.PageTest): 11 class Startup(page_test.PageTest):
11 """Performs a measurement of Chromium's startup performance. 12 """Performs a measurement of Chromium's startup performance.
12 13
13 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
14 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
15 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
16 repeat the page set to ensure it's cached. 17 repeat the page set to ensure it's cached.
17 """ 18 """
(...skipping 26 matching lines...) Expand all
44 none of the Chromium files are in the disk cache. A warm start assumes the OS 45 none of the Chromium files are in the disk cache. A warm start assumes the OS
45 has already cached much of Chromium's content. For warm tests, you should 46 has already cached much of Chromium's content. For warm tests, you should
46 repeat the page set to ensure it's cached. 47 repeat the page set to ensure it's cached.
47 48
48 The startup URL is taken from the page's startup_url. This 49 The startup URL is taken from the page's startup_url. This
49 allows the testing of multiple different URLs in a single benchmark. 50 allows the testing of multiple different URLs in a single benchmark.
50 """ 51 """
51 52
52 def __init__(self, cold=False): 53 def __init__(self, cold=False):
53 super(StartWithUrl, self).__init__(cold=cold) 54 super(StartWithUrl, self).__init__(cold=cold)
OLDNEW
« no previous file with comments | « tools/perf/measurements/smoothness_unittest.py ('k') | tools/perf/measurements/tab_switching.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698