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

Side by Side Diff: tools/perf/run_measurement

Issue 17087011: [telemetry] Fix run_measurement with legacy options (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update docs. Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/telemetry/docs/telemetry.core.timeline.tracing.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 import imp 5 import imp
6 import os 6 import os
7 import sys 7 import sys
8 import urllib 8 import urllib
9 9
10 # Directory path in which to save bootstrap files. 10 # Directory path in which to save bootstrap files.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 from telemetry.page import page_measurement_runner 58 from telemetry.page import page_measurement_runner
59 import page_sets 59 import page_sets
60 page_set_filenames = page_sets.GetAllPageSetFilenames() 60 page_set_filenames = page_sets.GetAllPageSetFilenames()
61 61
62 old_benchmark_names = { 62 old_benchmark_names = {
63 "cheapness_predictor_benchmark": "cheapness_predictor_measurement", 63 "cheapness_predictor_benchmark": "cheapness_predictor_measurement",
64 "image_decoding_benchmark": "image_decoding_measurement", 64 "image_decoding_benchmark": "image_decoding_measurement",
65 "loading_benchmark": "loading_measurement", 65 "loading_benchmark": "loading_measurement",
66 "memory_benchmark": "memory_measurement", 66 "memory_benchmark": "memory_measurement",
67 "rasterize_and_record_benchmark": "rasterize_and_record_benchmark", 67 "rasterize_and_record_benchmark": "rasterize_and_record_benchmark",
68 "scrolling_benchmark": "smoothness_measurement", 68 "scrolling_benchmark": "smoothness",
69 "smoothness_benchmark": "smoothness_measurement", 69 "smoothness_benchmark": "smoothness",
70 "smoothness_measurement": "smoothness",
70 "startup_benchmark": "startup_measurement" 71 "startup_benchmark": "startup_measurement"
71 } 72 }
72 73
73 # There are bots that are hard-coded to run some specific named tests. 74 # There are bots that are hard-coded to run some specific named tests.
74 # Convert these to the current naming conventions by overriding them in the ru nner. 75 # Convert these to the current naming conventions by overriding them in the ru nner.
75 class MeasurementRunner(page_measurement_runner.PageMeasurementRunner): 76 class MeasurementRunner(page_measurement_runner.PageMeasurementRunner):
76 def GetModernizedTestName(self, arg): 77 def GetModernizedTestName(self, arg):
77 if arg not in old_benchmark_names: 78 if arg not in old_benchmark_names:
78 return arg 79 return arg
79 sys.stderr.write( 80 sys.stderr.write(
80 'An old name %s was given. Please use %s in the future.\n' % ( 81 'An old name %s was given. Please use %s in the future.\n' % (
81 arg, 82 arg,
82 old_benchmark_names.get(arg))) 83 old_benchmark_names.get(arg)))
83 return old_benchmark_names[arg] 84 return old_benchmark_names[arg]
84 85
85 runner = MeasurementRunner() 86 runner = MeasurementRunner()
86 sys.exit(runner.Run(os.path.dirname(__file__), page_set_filenames)) 87 sys.exit(runner.Run(os.path.dirname(__file__), page_set_filenames))
87 88
88 if __name__ == '__main__': 89 if __name__ == '__main__':
89 sys.exit(main()) 90 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | tools/telemetry/docs/telemetry.core.timeline.tracing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698