| 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 find_depot_tools | 7 import find_depot_tools |
| 8 import sys | 8 import sys |
| 9 | 9 |
| 10 find_depot_tools.add_depot_tools_to_path() | 10 find_depot_tools.add_depot_tools_to_path() |
| 11 | 11 |
| 12 from git_cl import Changelist | 12 from git_cl import Changelist |
| 13 | 13 |
| 14 BOTS = { | 14 BOTS = { |
| 15 '--arm32': 'v8_arm32_perf_try', | 15 '--arm32': 'v8_arm32_perf_try', |
| 16 '--linux32': 'v8_linux32_perf_try', | 16 '--linux32': 'v8_linux32_perf_try', |
| 17 '--linux64': 'v8_linux64_perf_try', | 17 '--linux64': 'v8_linux64_perf_try', |
| 18 '--linux64_haswell': 'v8_linux64_haswell_perf_try', | 18 '--linux64_haswell': 'v8_linux64_haswell_perf_try', |
| 19 '--nexus5': 'v8_nexus5_perf_try', |
| 20 '--nexus7': 'v8_nexus7_perf_try', |
| 21 '--nexus9': 'v8_nexus9_perf_try', |
| 22 '--nexus10': 'v8_nexus10_perf_try', |
| 19 } | 23 } |
| 20 | 24 |
| 21 DEFAULT_BOTS = [ | 25 DEFAULT_BOTS = [ |
| 22 'v8_linux32_perf_try', | 26 'v8_linux32_perf_try', |
| 23 'v8_linux64_haswell_perf_try', | 27 'v8_linux64_haswell_perf_try', |
| 24 ] | 28 ] |
| 25 | 29 |
| 26 def main(): | 30 def main(): |
| 27 parser = argparse.ArgumentParser(description='') | 31 parser = argparse.ArgumentParser(description='') |
| 28 parser.add_argument("benchmarks", nargs="+", help="The benchmarks to run.") | 32 parser.add_argument("benchmarks", nargs="+", help="The benchmarks to run.") |
| (...skipping 27 matching lines...) Expand all Loading... |
| 56 masters = { | 60 masters = { |
| 57 'internal.client.v8': dict((b, options.benchmarks) for b in options.bots), | 61 'internal.client.v8': dict((b, options.benchmarks) for b in options.bots), |
| 58 } | 62 } |
| 59 cl.RpcServer().trigger_distributed_try_jobs( | 63 cl.RpcServer().trigger_distributed_try_jobs( |
| 60 cl.GetIssue(), cl.GetMostRecentPatchset(), cl.GetBranch(), | 64 cl.GetIssue(), cl.GetMostRecentPatchset(), cl.GetBranch(), |
| 61 False, None, masters) | 65 False, None, masters) |
| 62 return 0 | 66 return 0 |
| 63 | 67 |
| 64 if __name__ == "__main__": # pragma: no cover | 68 if __name__ == "__main__": # pragma: no cover |
| 65 sys.exit(main()) | 69 sys.exit(main()) |
| OLD | NEW |