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