| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 | 131 |
| 132 TestTitles = { | 132 TestTitles = { |
| 133 'audio_e2e_test': 'WebRTC Audio E2E', | 133 'audio_e2e_test': 'WebRTC Audio E2E', |
| 134 'audioproc_perf': 'WebRTC Audio Processing Perf', | 134 'audioproc_perf': 'WebRTC Audio Processing Perf', |
| 135 'avperf': 'Audio Video Perf', | 135 'avperf': 'Audio Video Perf', |
| 136 'av_perf': 'Audio Video Perf 2', | 136 'av_perf': 'Audio Video Perf 2', |
| 137 'bloat-http': 'Bloat - HTTP', | 137 'bloat-http': 'Bloat - HTTP', |
| 138 'cc_perftests': 'Chrome Compositor Perf', | 138 'cc_perftests': 'Chrome Compositor Perf', |
| 139 'chrome_frame_perf': 'Chrome Frame Perf', | 139 'chrome_frame_perf': 'Chrome Frame Perf', |
| 140 'control-testControlAttachDetachDOMTree': | |
| 141 'Control Test: ControlAttachDetachDOMTree', | |
| 142 'control-testControlAttachDetachDOMTreeWebDriver': | |
| 143 'Control Test: ControlAttachDetachDOMTreeWebDriver', | |
| 144 'coverage': 'Code Coverage', | 140 'coverage': 'Code Coverage', |
| 145 'database': 'Page Cycler Database', | 141 'database': 'Page Cycler Database', |
| 146 'dhtml': 'Page Cycler DHTML', | 142 'dhtml': 'Page Cycler DHTML', |
| 147 'docs-testDocsAlternatelyClickLists': | |
| 148 'Docs Test: DocsAlternatelyClickLists', | |
| 149 'docs_wpr-testDocsAlternatelyClickLists': | |
| 150 'Docs WPR Test: DocsAlternatelyClickLists', | |
| 151 'dom_perf': 'Dom', | 143 'dom_perf': 'Dom', |
| 152 'dromaeo_domcoreattr': 'Dromaeo DOMCore attr', | 144 'dromaeo_domcoreattr': 'Dromaeo DOMCore attr', |
| 153 'dromaeo_domcoremodify': 'Dromaeo DOMCore modify', | 145 'dromaeo_domcoremodify': 'Dromaeo DOMCore modify', |
| 154 'dromaeo_domcorequery': 'Dromaeo DOMCore query', | 146 'dromaeo_domcorequery': 'Dromaeo DOMCore query', |
| 155 'dromaeo_domcoretraverse': 'Dromaeo DOMCore traverse', | 147 'dromaeo_domcoretraverse': 'Dromaeo DOMCore traverse', |
| 156 'dromaeo_jslibattrjquery': 'Dromaeo JSLib attr jquery', | 148 'dromaeo_jslibattrjquery': 'Dromaeo JSLib attr jquery', |
| 157 'dromaeo_jslibattrprototype': 'Dromaeo JSLib attr prototype', | 149 'dromaeo_jslibattrprototype': 'Dromaeo JSLib attr prototype', |
| 158 'dromaeo_jslibeventjquery': 'Dromaeo JSLib event jquery', | 150 'dromaeo_jslibeventjquery': 'Dromaeo JSLib event jquery', |
| 159 'dromaeo_jslibeventprototype': 'Dromaeo JSLib event prototype', | 151 'dromaeo_jslibeventprototype': 'Dromaeo JSLib event prototype', |
| 160 'dromaeo_jslibmodifyjquery': 'Dromaeo JSLib modify jquery', | 152 'dromaeo_jslibmodifyjquery': 'Dromaeo JSLib modify jquery', |
| 161 'dromaeo_jslibmodifyprototype': 'Dromaeo JSLib modify prototype', | 153 'dromaeo_jslibmodifyprototype': 'Dromaeo JSLib modify prototype', |
| 162 'dromaeo_jslibstylejquery': 'Dromaeo JSLib stylej query', | 154 'dromaeo_jslibstylejquery': 'Dromaeo JSLib stylej query', |
| 163 'dromaeo_jslibstyleprototype': 'Dromaeo JSLib style prototype', | 155 'dromaeo_jslibstyleprototype': 'Dromaeo JSLib style prototype', |
| 164 'dromaeo_jslibtraversejquery': 'Dromaeo JSLib traverse jquery', | 156 'dromaeo_jslibtraversejquery': 'Dromaeo JSLib traverse jquery', |
| 165 'dromaeo_jslibtraverseprototype': 'Dromaeo JSLib traverse prototype', | 157 'dromaeo_jslibtraverseprototype': 'Dromaeo JSLib traverse prototype', |
| 158 'endure_cal_fw_back': 'Endure Calendar Forward and Backward', |
| 159 'endure_gmail_exp_col': 'Endure Gmail Expand and Collapse Conversation', |
| 160 'endure_gmail_labels': 'Endure Gmail Alternate Labels', |
| 161 'endure_gmail_thread': 'Endure Gmail Alternate Threads', |
| 162 'endure_plus_photos': 'Endure Plus Alternate Posts and Photos', |
| 166 'frame_rate': 'Frame Rate', | 163 'frame_rate': 'Frame Rate', |
| 167 'gmail-testGmailComposeDiscard': | |
| 168 'Gmail Test: GmailComposeDiscard', | |
| 169 'gmail-testGmailAlternateThreadlistConversation': | |
| 170 'Gmail Test: GmailAlternateThreadlistConversation', | |
| 171 'gmail-testGmailAlternateTwoLabels': | |
| 172 'Gmail Test: GmailAlternateTwoLabels', | |
| 173 'gmail-testGmailExpandCollapseConversation': | |
| 174 'Gmail Test: GmailExpandCollapseConversation', | |
| 175 'gmail_wpr-testGmailComposeDiscard': | |
| 176 'Gmail WPR Test: GmailComposeDiscard', | |
| 177 'gmail_wpr-testGmailAlternateThreadlistConversation': | |
| 178 'Gmail WPR Test: GmailAlternateThreadlistConversation', | |
| 179 'gmail_wpr-testGmailAlternateTwoLabels': | |
| 180 'Gmail WPR Test: GmailAlternateTwoLabels', | |
| 181 'gmail_wpr-testGmailExpandCollapseConversation': | |
| 182 'Gmail WPR Test: GmailExpandCollapseConversation', | |
| 183 'gpu_frame_rate': 'GPU Frame Rate', | 164 'gpu_frame_rate': 'GPU Frame Rate', |
| 184 'gpu_latency': 'GPU Latency', | 165 'gpu_latency': 'GPU Latency', |
| 185 'gpu_throughput': 'GPU Throughput', | 166 'gpu_throughput': 'GPU Throughput', |
| 186 'idb_perf': 'Other IndexedDB', | 167 'idb_perf': 'Other IndexedDB', |
| 187 'image_decoding_benchmark': 'Image Decoding Benchmark', | 168 'image_decoding_benchmark': 'Image Decoding Benchmark', |
| 188 'indexeddb': 'Page Cycler IndexedDB', | 169 'indexeddb': 'Page Cycler IndexedDB', |
| 189 'indexeddb-testOfflineOnline': | |
| 190 'IndexedDB Test: OfflineOnline', | |
| 191 'intl1': 'Page Cycler Intl1', | 170 'intl1': 'Page Cycler Intl1', |
| 192 'intl2': 'Page Cycler Intl2', | 171 'intl2': 'Page Cycler Intl2', |
| 193 'isac_fixed_perf': 'WebRTC iSAC Fixed-point Perf', | 172 'isac_fixed_perf': 'WebRTC iSAC Fixed-point Perf', |
| 194 'jsgamebench': 'JSGameBench', | 173 'jsgamebench': 'JSGameBench', |
| 195 'kraken': 'Kraken', | 174 'kraken': 'Kraken', |
| 196 'mach_ports': 'Mach Port Usage', | 175 'mach_ports': 'Mach Port Usage', |
| 197 'memory': 'Memory', | 176 'memory': 'Memory', |
| 198 'memory_benchmark': 'Memory Benchmark', | 177 'memory_benchmark': 'Memory Benchmark', |
| 199 'media_perf': 'Media Perf', | 178 'media_perf': 'Media Perf', |
| 200 'media_tests_av_perf': 'Media Tests AV Perf', | 179 'media_tests_av_perf': 'Media Tests AV Perf', |
| 201 'morejs': 'Page Cycler Morejs', | 180 'morejs': 'Page Cycler Morejs', |
| 202 'moz': 'Page Cycler Moz', | 181 'moz': 'Page Cycler Moz', |
| 203 'moz-http': 'Page Cycler Moz - HTTP', | 182 'moz-http': 'Page Cycler Moz - HTTP', |
| 204 'nacl-perf': 'NaCl Perf', | 183 'nacl-perf': 'NaCl Perf', |
| 205 'new-tab-ui-cold': 'New Tab Cold', | 184 'new-tab-ui-cold': 'New Tab Cold', |
| 206 'new-tab-ui-warm': 'New Tab Warm', | 185 'new-tab-ui-warm': 'New Tab Warm', |
| 207 'octane': 'Octane', | 186 'octane': 'Octane', |
| 208 'page_cycler_2012Q2-netsim': 'Page Cycler 2012Q2 Netsim', | 187 'page_cycler_2012Q2-netsim': 'Page Cycler 2012Q2 Netsim', |
| 209 'plus-testPlusAlternatelyClickStreams': | |
| 210 'Plus Test: PlusAlternatelyClickStreams', | |
| 211 'plus_wpr-testPlusAlternatelyClickStreams': | |
| 212 'Plus WPR Test: PlusAlternatelyClickStreams', | |
| 213 'pnacl-tools': 'PNaCl Toolchain', | 188 'pnacl-tools': 'PNaCl Toolchain', |
| 214 'pyauto_perf': 'Pyauto Perf', | 189 'pyauto_perf': 'Pyauto Perf', |
| 215 'pyauto_webrtc_tests': 'WebRTC PyAuto', | 190 'pyauto_webrtc_tests': 'WebRTC PyAuto', |
| 216 'pyauto_webrtc_quality_tests': 'WebRTC Quality PyAuto', | 191 'pyauto_webrtc_quality_tests': 'WebRTC Quality PyAuto', |
| 217 'resource_sizes': 'Resource Sizes', | 192 'resource_sizes': 'Resource Sizes', |
| 218 'robohornetpro': 'RoboHornet Pro', | 193 'robohornetpro': 'RoboHornet Pro', |
| 219 'scrolling_benchmark': 'Scrolling Benchmark', | 194 'scrolling_benchmark': 'Scrolling Benchmark', |
| 220 'sizes': 'Sizes', | 195 'sizes': 'Sizes', |
| 221 'spaceport': 'Spaceport', | 196 'spaceport': 'Spaceport', |
| 222 'spec2k': 'Spec2K', | 197 'spec2k': 'Spec2K', |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 continue | 401 continue |
| 427 test_title = TestTitles[test_dir] | 402 test_title = TestTitles[test_dir] |
| 428 perf_dir = os.path.join(system_dir, test_dir) | 403 perf_dir = os.path.join(system_dir, test_dir) |
| 429 os.chmod(perf_dir, 0755) | 404 os.chmod(perf_dir, 0755) |
| 430 TestInit(perf_dir, system_title, test_title, symlink_list, options.endure) | 405 TestInit(perf_dir, system_title, test_title, symlink_list, options.endure) |
| 431 return 0 | 406 return 0 |
| 432 | 407 |
| 433 | 408 |
| 434 if __name__ == '__main__': | 409 if __name__ == '__main__': |
| 435 sys.exit(main()) | 410 sys.exit(main()) |
| OLD | NEW |