| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 # Initializes all the perf directories. | 6 # Initializes all the perf directories. |
| 7 | 7 |
| 8 | 8 |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 'moz': 'Page Cycler Moz', | 88 'moz': 'Page Cycler Moz', |
| 89 'moz-http': 'Page Cycler Moz - HTTP', | 89 'moz-http': 'Page Cycler Moz - HTTP', |
| 90 'nacl-perf': 'NaCl Perf', | 90 'nacl-perf': 'NaCl Perf', |
| 91 'new-tab-ui-cold': 'New Tab Cold', | 91 'new-tab-ui-cold': 'New Tab Cold', |
| 92 'new-tab-ui-warm': 'New Tab Warm', | 92 'new-tab-ui-warm': 'New Tab Warm', |
| 93 'resource_sizes': 'Resource Sizes', | 93 'resource_sizes': 'Resource Sizes', |
| 94 'sizes': 'Sizes', | 94 'sizes': 'Sizes', |
| 95 'spec2k': 'Spec2K', | 95 'spec2k': 'Spec2K', |
| 96 'startup': 'Startup', | 96 'startup': 'Startup', |
| 97 'sunspider': 'SunSpider', | 97 'sunspider': 'SunSpider', |
| 98 'sync': 'Sync', |
| 98 'tab-switching': 'Tab Switching', | 99 'tab-switching': 'Tab Switching', |
| 99 'targets': 'Target Build Times', | 100 'targets': 'Target Build Times', |
| 100 'v8_benchmark': 'V8 Benchmark', | 101 'v8_benchmark': 'V8 Benchmark', |
| 101 } | 102 } |
| 102 | 103 |
| 103 BASE_URL = 'http://build.chromium.org/f/chromium' | 104 BASE_URL = 'http://build.chromium.org/f/chromium' |
| 104 | 105 |
| 105 # Template contents of a config.js file. One of these gets created in | 106 # Template contents of a config.js file. One of these gets created in |
| 106 # each subdirectory for a given perf test, identified with the system | 107 # each subdirectory for a given perf test, identified with the system |
| 107 # that it's part of and an appropriate title. | 108 # that it's part of and an appropriate title. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 continue | 186 continue |
| 186 test_title = TestTitles[test_dir] | 187 test_title = TestTitles[test_dir] |
| 187 perf_dir = os.path.join(system_dir, test_dir) | 188 perf_dir = os.path.join(system_dir, test_dir) |
| 188 os.chmod(perf_dir, 0755) | 189 os.chmod(perf_dir, 0755) |
| 189 TestInit(perf_dir, system_title, test_title) | 190 TestInit(perf_dir, system_title, test_title) |
| 190 return 0 | 191 return 0 |
| 191 | 192 |
| 192 | 193 |
| 193 if __name__ == '__main__': | 194 if __name__ == '__main__': |
| 194 sys.exit(main()) | 195 sys.exit(main()) |
| OLD | NEW |