Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Side by Side Diff: tools/try_perf.py

Issue 2358873002: [tools] added unity suite to known benchmark set (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 'memory', 42 'memory',
43 'octane', 43 'octane',
44 'octane-noopt', 44 'octane-noopt',
45 'octane-ignition', 45 'octane-ignition',
46 'octane-pr', 46 'octane-pr',
47 'octane-tf', 47 'octane-tf',
48 'octane-tf-pr', 48 'octane-tf-pr',
49 'simdjs', 49 'simdjs',
50 'sunspider', 50 'sunspider',
51 'sunspider-ignition', 51 'sunspider-ignition',
52 'unity',
52 'wasm', 53 'wasm',
53 ] 54 ]
54 55
55 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) 56 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
56 57
57 def main(): 58 def main():
58 parser = argparse.ArgumentParser(description='') 59 parser = argparse.ArgumentParser(description='')
59 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.') 60 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.')
60 parser.add_argument('--extra-flags', default='', 61 parser.add_argument('--extra-flags', default='',
61 help='Extra flags to be passed to the executable.') 62 help='Extra flags to be passed to the executable.')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 if options.revision: cmd += ['-r %s' % options.revision] 99 if options.revision: cmd += ['-r %s' % options.revision]
99 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] 100 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks]
100 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] 101 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)]
101 if options.extra_flags: 102 if options.extra_flags:
102 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] 103 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags]
103 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) 104 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE)
104 105
105 106
106 if __name__ == '__main__': # pragma: no cover 107 if __name__ == '__main__': # pragma: no cover
107 sys.exit(main()) 108 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698