Commit c6e09003 authored by Sergiy Byelozyorov's avatar Sergiy Byelozyorov Committed by Commit Bot

[tools] Add verbose mode to try_perf.py

This is useful to see exact command used to communicate with buildbucket and
debug any triggering issues.

R=machenbach@chromium.org

Change-Id: I1630485ed128f757364d9c1f62b7f1d663db2ece
Reviewed-on: https://chromium-review.googlesource.com/c/1325371Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Sergiy Byelozyorov <sergiyb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57371}
parent e2f0a90e
...@@ -69,6 +69,9 @@ def _trigger_bots(bucket, bots, options): ...@@ -69,6 +69,9 @@ def _trigger_bots(bucket, bots, options):
cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)]
if options.extra_flags: if options.extra_flags:
cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags]
if options.verbose:
cmd.append('-vv')
print 'Running %s' % ' '.join(cmd)
subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE)
def main(): def main():
...@@ -80,6 +83,8 @@ def main(): ...@@ -80,6 +83,8 @@ def main():
help='Revision (use full hash!) to use for the try job; ' help='Revision (use full hash!) to use for the try job; '
'default: the revision will be determined by the ' 'default: the revision will be determined by the '
'try server; see its waterfall for more info') 'try server; see its waterfall for more info')
parser.add_argument('-v', '--verbose', action='store_true',
help='Print debug information')
for option in sorted(BOTS): for option in sorted(BOTS):
parser.add_argument( parser.add_argument(
option, dest='bots', action='append_const', const=BOTS[option], option, dest='bots', action='append_const', const=BOTS[option],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment