| 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 # Initializes all the perf directories. | 6 # Initializes all the perf directories. |
| 7 | 7 |
| 8 | 8 |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 # These are long-running endure tests that have differently-shaped graphs. | 113 # These are long-running endure tests that have differently-shaped graphs. |
| 114 EndureSystemTitles = { | 114 EndureSystemTitles = { |
| 115 'endure-linux-dbg': 'Endure Linux Debug', | 115 'endure-linux-dbg': 'Endure Linux Debug', |
| 116 'endure-linux-rel': 'Endure Linux Release', | 116 'endure-linux-rel': 'Endure Linux Release', |
| 117 } | 117 } |
| 118 | 118 |
| 119 TestTitles = { | 119 TestTitles = { |
| 120 'avperf': 'Audio Video Perf', | 120 'avperf': 'Audio Video Perf', |
| 121 'av_perf': 'Audio Video Perf 2', | 121 'av_perf': 'Audio Video Perf 2', |
| 122 'bloat-http': 'Bloat - HTTP', | 122 'bloat-http': 'Bloat - HTTP', |
| 123 'cc_perftests': 'Chrome Compositor Perf', |
| 123 'chrome_frame_perf': 'Chrome Frame Perf', | 124 'chrome_frame_perf': 'Chrome Frame Perf', |
| 124 'control-testControlAttachDetachDOMTree': | 125 'control-testControlAttachDetachDOMTree': |
| 125 'Control Test: ControlAttachDetachDOMTree', | 126 'Control Test: ControlAttachDetachDOMTree', |
| 126 'control-testControlAttachDetachDOMTreeWebDriver': | 127 'control-testControlAttachDetachDOMTreeWebDriver': |
| 127 'Control Test: ControlAttachDetachDOMTreeWebDriver', | 128 'Control Test: ControlAttachDetachDOMTreeWebDriver', |
| 128 'coverage': 'Code Coverage', | 129 'coverage': 'Code Coverage', |
| 129 'database': 'Page Cycler Database', | 130 'database': 'Page Cycler Database', |
| 130 'dhtml': 'Page Cycler DHTML', | 131 'dhtml': 'Page Cycler DHTML', |
| 131 'docs-testDocsAlternatelyClickLists': | 132 'docs-testDocsAlternatelyClickLists': |
| 132 'Docs Test: DocsAlternatelyClickLists', | 133 'Docs Test: DocsAlternatelyClickLists', |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 var Config = { | 219 var Config = { |
| 219 buildslave: '%(system_title)s', | 220 buildslave: '%(system_title)s', |
| 220 title: '%(title)s', | 221 title: '%(title)s', |
| 221 changeLinkPrefix: '%(base_url)s/perf/dashboard/ui/changelog.html?url=/trunk/sr
c&mode=html&range=', | 222 changeLinkPrefix: '%(base_url)s/perf/dashboard/ui/changelog.html?url=/trunk/sr
c&mode=html&range=', |
| 222 coverageLinkPrefix: '%(base_url)s/coverage/%(system_dir)s/', | 223 coverageLinkPrefix: '%(base_url)s/coverage/%(system_dir)s/', |
| 223 """ | 224 """ |
| 224 CONFIG_TEMPLATE_END = """}; | 225 CONFIG_TEMPLATE_END = """}; |
| 225 """ | 226 """ |
| 226 | 227 |
| 227 # Template contents of a chrome_config.js file. One is create in dashboard | 228 # Template contents of a chrome_config.js file. One is create in dashboard |
| 228 # directory. This specifies all test names and machines that are running | 229 # directory. This specifies all test names and machines that are running |
| 229 # the tests. This is used by Chrome dashboard HTML pages. | 230 # the tests. This is used by Chrome dashboard HTML pages. |
| 230 CHROME_CONFIG_TEMPLATE = """\ | 231 CHROME_CONFIG_TEMPLATE = """\ |
| 231 /* | 232 /* |
| 232 This file is generated by generate_perf.py. | 233 This file is generated by generate_perf.py. |
| 233 */ | 234 */ |
| 234 var ChromeConfig = { | 235 var ChromeConfig = { |
| 235 systemTitles: { | 236 systemTitles: { |
| 236 %(system_title)s | 237 %(system_title)s |
| 237 }, | 238 }, |
| 238 | 239 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 continue | 406 continue |
| 406 test_title = TestTitles[test_dir] | 407 test_title = TestTitles[test_dir] |
| 407 perf_dir = os.path.join(system_dir, test_dir) | 408 perf_dir = os.path.join(system_dir, test_dir) |
| 408 os.chmod(perf_dir, 0755) | 409 os.chmod(perf_dir, 0755) |
| 409 TestInit(perf_dir, system_title, test_title, symlink_list, options.endure) | 410 TestInit(perf_dir, system_title, test_title, symlink_list, options.endure) |
| 410 return 0 | 411 return 0 |
| 411 | 412 |
| 412 | 413 |
| 413 if __name__ == '__main__': | 414 if __name__ == '__main__': |
| 414 sys.exit(main()) | 415 sys.exit(main()) |
| OLD | NEW |