OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2016 Google Inc. | 3 # Copyright 2016 Google Inc. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
7 | 7 |
8 | 8 |
9 import argparse | 9 import argparse |
10 import common | 10 import common |
11 import os | 11 import os |
12 import sys | 12 import sys |
13 import utils | 13 import utils |
14 | 14 |
15 | 15 |
16 def main(): | 16 def main(): |
17 parser = argparse.ArgumentParser() | 17 parser = argparse.ArgumentParser() |
18 parser.add_argument('--master_name', required=True) | 18 parser.add_argument('--master_name', required=True) |
19 parser.add_argument('--builder_name', required=True) | 19 parser.add_argument('--builder_name', required=True) |
20 parser.add_argument('--build_number', required=True) | 20 parser.add_argument('--build_number', required=True) |
21 parser.add_argument('--slave_name', required=True) | 21 parser.add_argument('--slave_name', required=True) |
22 parser.add_argument('--revision', required=True) | 22 parser.add_argument('--revision', required=True) |
23 parser.add_argument('--swarm_out_dir', required=True) | 23 parser.add_argument('--swarm_out_dir', required=True) |
| 24 parser.add_argument('--issue') |
| 25 parser.add_argument('--patchset') |
24 args = parser.parse_args() | 26 args = parser.parse_args() |
25 with utils.print_timings(): | 27 with utils.print_timings(): |
26 bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir)) | 28 bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir)) |
27 bot.perf_steps(args.revision, args.master_name, args.slave_name, | 29 bot.perf_steps(args.revision, args.master_name, args.slave_name, |
28 args.build_number) | 30 args.build_number, issue=args.issue or None, |
| 31 patchset=args.patchset or None) |
29 | 32 |
30 | 33 |
31 if __name__ == '__main__': | 34 if __name__ == '__main__': |
32 main() | 35 main() |
OLD | NEW |