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

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

Issue 24448002: Supply resource path for bench. (Closed) Base URL: https://skia.googlecode.com/svn/buildbot
Patch Set: Should be the same. From a different computer. Created 7 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 | Annotate | Revision Log
« 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) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 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 from build_step import BuildStep 8 from build_step import BuildStep
9 from utils import shell_utils 9 from utils import shell_utils
10 import os 10 import os
(...skipping 28 matching lines...) Expand all
39 def __init__(self, timeout=9600, no_output_timeout=9600, **kwargs): 39 def __init__(self, timeout=9600, no_output_timeout=9600, **kwargs):
40 super(RunBench, self).__init__(timeout=timeout, 40 super(RunBench, self).__init__(timeout=timeout,
41 no_output_timeout=no_output_timeout, 41 no_output_timeout=no_output_timeout,
42 **kwargs) 42 **kwargs)
43 43
44 def _BuildDataFile(self): 44 def _BuildDataFile(self):
45 return os.path.join(self._device_dirs.PerfDir(), 45 return os.path.join(self._device_dirs.PerfDir(),
46 'bench_r%s_data' % GetSvnRevision(self._got_revision)) 46 'bench_r%s_data' % GetSvnRevision(self._got_revision))
47 47
48 def _Run(self): 48 def _Run(self):
49 args = [] 49 args = ['-i ', self._device_dirs.ResourceDir()]
50 if self._perf_data_dir: 50 if self._perf_data_dir:
51 args.extend(BenchArgs(self._BuildDataFile())) 51 args.extend(BenchArgs(self._BuildDataFile()))
52 if 'Nexus4' in self._builder_name: 52 if 'Nexus4' in self._builder_name:
53 args.extend(['--config', 'defaults', 'MSAA4']) 53 args.extend(['--config', 'defaults', 'MSAA4'])
54 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args) 54 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args)
55 55
56 56
57 if '__main__' == __name__: 57 if '__main__' == __name__:
58 sys.exit(BuildStep.RunBuildStep(RunBench)) 58 sys.exit(BuildStep.RunBuildStep(RunBench))
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