OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Utility script to run the benchmarks during the profiling step of a PGO | 5 """Utility script to run the benchmarks during the profiling step of a PGO |
6 build. | 6 build. |
7 """ | 7 """ |
8 | 8 |
9 import json | 9 import json |
10 import optparse | 10 import optparse |
(...skipping 29 matching lines...) Expand all Loading... |
40 'dromaeo.domcoretraverse', | 40 'dromaeo.domcoretraverse', |
41 'dromaeo.jslibattrprototype', | 41 'dromaeo.jslibattrprototype', |
42 'dromaeo.jslibeventprototype', | 42 'dromaeo.jslibeventprototype', |
43 'dromaeo.jslibmodifyprototype', | 43 'dromaeo.jslibmodifyprototype', |
44 'dromaeo.jslibstyleprototype', | 44 'dromaeo.jslibstyleprototype', |
45 'dromaeo.jslibtraversejquery', | 45 'dromaeo.jslibtraversejquery', |
46 'dromaeo.jslibtraverseprototype', | 46 'dromaeo.jslibtraverseprototype', |
47 'media.tough_video_cases', | 47 'media.tough_video_cases', |
48 'octane', | 48 'octane', |
49 'smoothness.top_25_smooth', | 49 'smoothness.top_25_smooth', |
50 'speedometer', | |
51 'storage.indexeddb_endure_tracing', | 50 'storage.indexeddb_endure_tracing', |
52 'sunspider', | 51 'sunspider', |
53 } | 52 } |
54 | 53 |
55 | 54 |
56 def FindPgosweep(target_cpu): | 55 def FindPgosweep(target_cpu): |
57 """Find the directory containing pgosweep.exe. | 56 """Find the directory containing pgosweep.exe. |
58 | 57 |
59 Note: |target_cpu| should be x86 or x64. | 58 Note: |target_cpu| should be x86 or x64. |
60 """ | 59 """ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 if not options.build_dir: | 146 if not options.build_dir: |
148 parser.error('--build-dir is required') | 147 parser.error('--build-dir is required') |
149 if not options.browser_type: | 148 if not options.browser_type: |
150 options.browser_type = 'exact' | 149 options.browser_type = 'exact' |
151 | 150 |
152 return RunBenchmarks(options) | 151 return RunBenchmarks(options) |
153 | 152 |
154 | 153 |
155 if __name__ == '__main__': | 154 if __name__ == '__main__': |
156 sys.exit(main()) | 155 sys.exit(main()) |
OLD | NEW |