OLD | NEW |
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 | 5 |
6 import imp | 6 import imp |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 import urllib2 | 9 import urllib2 |
10 | 10 |
11 | 11 |
12 BASE_URL = 'http://src.chromium.org/chrome/trunk/' | 12 BASE_URL = 'http://src.chromium.org/chrome/trunk/' |
13 DEPS_FILE = 'bootstrap_deps' | 13 DEPS_FILE = 'bootstrap_deps' |
14 | 14 |
15 SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) | 15 SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__)) |
16 # Directory containing src/ in a Chromium checkout. | 16 # Directory containing src/ in a Chromium checkout. |
17 CHECKOUT_BASE_PATH = os.path.join(SCRIPT_PATH, os.pardir, os.pardir, os.pardir) | 17 CHECKOUT_BASE_PATH = os.path.join(SCRIPT_PATH, os.pardir, os.pardir, os.pardir) |
18 # Directory in which to save bootstrap files. | 18 # Directory in which to save bootstrap files. |
19 BOOTSTRAP_BASE_PATH = os.path.join(SCRIPT_PATH, 'support', 'bootstrap_files') | 19 BOOTSTRAP_BASE_PATH = os.path.join(SCRIPT_PATH, 'support', 'bootstrap_files') |
20 | 20 |
21 PERF_DIR = os.path.join('src', 'tools', 'perf') | 21 PERF_DIR = os.path.join('src', 'tools', 'perf') |
22 TELEMETRY_DIR = os.path.join('src', 'tools', 'telemetry') | 22 TELEMETRY_DIR = os.path.join('src', 'tools', 'telemetry') |
23 TELEMETRY_TOOLS_DIR = os.path.join('src', 'tools', 'telemetry_tools') | 23 TELEMETRY_TOOLS_DIR = os.path.join('src', 'tools', 'telemetry_tools') |
24 | 24 |
25 | 25 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 arg, | 119 arg, |
120 old_benchmark_names.get(arg))) | 120 old_benchmark_names.get(arg))) |
121 return old_benchmark_names[arg] | 121 return old_benchmark_names[arg] |
122 | 122 |
123 runner = MeasurementRunner() | 123 runner = MeasurementRunner() |
124 return runner.Run(new_perf_path, page_set_filenames) | 124 return runner.Run(new_perf_path, page_set_filenames) |
125 | 125 |
126 | 126 |
127 if __name__ == '__main__': | 127 if __name__ == '__main__': |
128 sys.exit(Main()) | 128 sys.exit(Main()) |
OLD | NEW |