| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project 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 import argparse | 6 import argparse |
| 7 import os | 7 import os |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 BOTS = { | 11 BOTS = { |
| 12 '--arm32': 'v8_arm32_perf_try', | 12 '--arm32': 'v8_arm32_perf_try', |
| 13 '--linux32': 'v8_linux32_perf_try', | 13 '--linux32': 'v8_linux32_perf_try', |
| 14 '--linux64': 'v8_linux64_perf_try', | 14 '--linux64': 'v8_linux64_perf_try', |
| 15 '--linux64_atom': 'v8_linux64_atom_perf_try', |
| 15 '--linux64_haswell': 'v8_linux64_haswell_perf_try', | 16 '--linux64_haswell': 'v8_linux64_haswell_perf_try', |
| 16 '--nexus5': 'v8_nexus5_perf_try', | 17 '--nexus5': 'v8_nexus5_perf_try', |
| 17 '--nexus7': 'v8_nexus7_perf_try', | 18 '--nexus7': 'v8_nexus7_perf_try', |
| 18 '--nexus9': 'v8_nexus9_perf_try', | 19 '--nexus9': 'v8_nexus9_perf_try', |
| 19 '--nexus10': 'v8_nexus10_perf_try', | 20 '--nexus10': 'v8_nexus10_perf_try', |
| 20 } | 21 } |
| 21 | 22 |
| 22 DEFAULT_BOTS = [ | 23 DEFAULT_BOTS = [ |
| 23 'v8_arm32_perf_try', | 24 'v8_arm32_perf_try', |
| 24 'v8_linux32_perf_try', | 25 'v8_linux32_perf_try', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 cmd += ['-b %s' % bot for bot in options.bots] | 58 cmd += ['-b %s' % bot for bot in options.bots] |
| 58 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] | 59 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] |
| 59 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] | 60 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] |
| 60 if options.extra_flags: | 61 if options.extra_flags: |
| 61 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] | 62 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] |
| 62 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) | 63 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) |
| 63 | 64 |
| 64 | 65 |
| 65 if __name__ == '__main__': # pragma: no cover | 66 if __name__ == '__main__': # pragma: no cover |
| 66 sys.exit(main()) | 67 sys.exit(main()) |
| OLD | NEW |