Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2015 The Chromium 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 """This script is meant to be run on a Swarming bot.""" | 6 """This script is meant to be run on a Swarming bot.""" |
| 7 | 7 |
| 8 import argparse | 8 import argparse |
| 9 import os | 9 import os |
| 10 import subprocess | 10 import subprocess |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 '--verbose', | 48 '--verbose', |
| 49 ]) | 49 ]) |
| 50 elif args.tool == 'nanobench': | 50 elif args.tool == 'nanobench': |
| 51 # Add Nanobench specific arguments. | 51 # Add Nanobench specific arguments. |
| 52 out_results_file = os.path.join( | 52 out_results_file = os.path.join( |
| 53 args.isolated_outdir, 'nanobench_%s_slave%d.json' % (args.git_hash, | 53 args.isolated_outdir, 'nanobench_%s_slave%d.json' % (args.git_hash, |
| 54 args.slave_num)) | 54 args.slave_num)) |
| 55 cmd.extend([ | 55 cmd.extend([ |
| 56 '--skps', skps_dir, | 56 '--skps', skps_dir, |
| 57 '--resourcePath', resource_path, | 57 '--resourcePath', resource_path, |
| 58 '--config', '8888', | 58 '--config', '8888', 'gpu', |
|
borenet
2015/12/10 19:00:36
You should consider putting this in the Skia repo'
rmistry
2015/12/10 19:02:15
I'll make a note to look into that.
borenet
2015/12/10 19:03:34
Maybe after the skia recipe module can be reused w
| |
| 59 '--outResultsFile', out_results_file, | 59 '--outResultsFile', out_results_file, |
| 60 '--properties', 'gitHash', args.git_hash, | 60 '--properties', 'gitHash', args.git_hash, |
| 61 '--key', 'arch', 'x86_64', 'compiler', 'GCC', 'cpu_or_gpu', 'CPU', | 61 '--key', 'arch', 'x86_64', 'compiler', 'GCC', 'cpu_or_gpu', 'CPU', |
| 62 'cpu_or_gpu_value', 'AVX2', 'model', 'SWARM', 'os', 'Ubuntu', | 62 'cpu_or_gpu_value', 'AVX2', 'model', 'SWARM', 'os', 'Ubuntu', |
| 63 '--verbose', | 63 '--verbose', |
| 64 ]) | 64 ]) |
| 65 | 65 |
| 66 return subprocess.call(cmd) | 66 return subprocess.call(cmd) |
| 67 | 67 |
| 68 | 68 |
| 69 if __name__ == '__main__': | 69 if __name__ == '__main__': |
| 70 sys.exit(main()) | 70 sys.exit(main()) |
| OLD | NEW |