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

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

Issue 491943002: pass --properties (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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 def _AnyMatch(self, *args): 55 def _AnyMatch(self, *args):
56 return any(arg in self._builder_name for arg in args) 56 return any(arg in self._builder_name for arg in args)
57 57
58 def _Run(self): 58 def _Run(self):
59 args = ['-i', self._device_dirs.ResourceDir(), 59 args = ['-i', self._device_dirs.ResourceDir(),
60 '--skps', self._device_dirs.SKPDir(), 60 '--skps', self._device_dirs.SKPDir(),
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(['--outResultsFile', self._JSONPath()])
66 '--outResultsFile', self._JSONPath(),
67 '--gitHash', self._got_revision,
68 ])
69 args.append('--key') 66 args.append('--key')
70 args.extend(self._KeyParams()) 67 args.extend(self._KeyParams())
71 args.append('--options') 68 args.append('--properties')
72 args.extend(['build_number', str(self._build_number)]) 69 args.extend(['gitHash', self._got_revision,
70 'build_number', str(self._build_number)])
73 71
74 match = [] 72 match = []
75 # Disable known problems. 73 # Disable known problems.
76 if self._AnyMatch('Android'): 74 if self._AnyMatch('Android'):
77 # Segfaults when run as GPU bench. Very large texture? 75 # Segfaults when run as GPU bench. Very large texture?
78 match.append('~blurroundrect') 76 match.append('~blurroundrect')
79 77
80 if self._AnyMatch('HD2000'): 78 if self._AnyMatch('HD2000'):
81 # GPU benches seem to hang on HD2000. Not sure why. 79 # GPU benches seem to hang on HD2000. Not sure why.
82 args.append('--nogpu') 80 args.append('--nogpu')
(...skipping 16 matching lines...) Expand all
99 # See skia:2789 97 # See skia:2789
100 if self._AnyMatch('Valgrind'): 98 if self._AnyMatch('Valgrind'):
101 abandonGpuContext = list(args) 99 abandonGpuContext = list(args)
102 abandonGpuContext.append('--abandonGpuContext') 100 abandonGpuContext.append('--abandonGpuContext')
103 abandonGpuContext.append('--nocpu') 101 abandonGpuContext.append('--nocpu')
104 self._flavor_utils.RunFlavoredCmd('nanobench', abandonGpuContext) 102 self._flavor_utils.RunFlavoredCmd('nanobench', abandonGpuContext)
105 103
106 104
107 if '__main__' == __name__: 105 if '__main__' == __name__:
108 sys.exit(BuildStep.RunBuildStep(RunNanobench)) 106 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