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

Side by Side Diff: slave/skia_slave_scripts/run_nanobench.py

Issue 487233003: Pass nanobench --options build_number <build_number>. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 6 years, 4 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 (c) 2014 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2014 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 """Run the Skia benchmarking executable.""" 6 """Run the Skia benchmarking executable."""
7 7
8 import os 8 import os
9 import sys 9 import sys
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 '--scales', '1.0', '1.1'] 61 '--scales', '1.0', '1.1']
62 if self._AnyMatch('Valgrind'): 62 if self._AnyMatch('Valgrind'):
63 args.extend(['--loops', '1']) # Don't care about performance on Valgrind. 63 args.extend(['--loops', '1']) # Don't care about performance on Valgrind.
64 elif self._perf_data_dir: 64 elif self._perf_data_dir:
65 args.extend([ 65 args.extend([
66 '--outResultsFile', self._JSONPath(), 66 '--outResultsFile', self._JSONPath(),
67 '--gitHash', self._got_revision, 67 '--gitHash', self._got_revision,
68 ]) 68 ])
69 args.append('--key') 69 args.append('--key')
70 args.extend(self._KeyParams()) 70 args.extend(self._KeyParams())
71 args.append('--options')
72 args.extend(['build_number', str(self._build_number)])
71 73
72 match = [] 74 match = []
73 # Disable known problems. 75 # Disable known problems.
74 if self._AnyMatch('Android'): 76 if self._AnyMatch('Android'):
75 # Segfaults when run as GPU bench. Very large texture? 77 # Segfaults when run as GPU bench. Very large texture?
76 match.append('~blurroundrect') 78 match.append('~blurroundrect')
77 79
78 if self._AnyMatch('HD2000'): 80 if self._AnyMatch('HD2000'):
79 # GPU benches seem to hang on HD2000. Not sure why. 81 # GPU benches seem to hang on HD2000. Not sure why.
80 args.append('--nogpu') 82 args.append('--nogpu')
(...skipping 16 matching lines...) Expand all
97 # See skia:2789 99 # See skia:2789
98 if self._AnyMatch('Valgrind'): 100 if self._AnyMatch('Valgrind'):
99 abandonGpuContext = list(args) 101 abandonGpuContext = list(args)
100 abandonGpuContext.append('--abandonGpuContext') 102 abandonGpuContext.append('--abandonGpuContext')
101 abandonGpuContext.append('--nocpu') 103 abandonGpuContext.append('--nocpu')
102 self._flavor_utils.RunFlavoredCmd('nanobench', abandonGpuContext) 104 self._flavor_utils.RunFlavoredCmd('nanobench', abandonGpuContext)
103 105
104 106
105 if '__main__' == __name__: 107 if '__main__' == __name__:
106 sys.exit(BuildStep.RunBuildStep(RunNanobench)) 108 sys.exit(BuildStep.RunBuildStep(RunNanobench))
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