Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 = [] |
| 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 args.extend(['-i ', self._device_dirs.ResourceDir()]) | |
|
borenet
2013/09/25 15:11:14
Optional: You can replace the empty args list on l
scroggo
2013/09/25 19:43:57
Done.
| |
| 54 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args) | 55 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args) |
| 55 | 56 |
| 56 | 57 |
| 57 if '__main__' == __name__: | 58 if '__main__' == __name__: |
| 58 sys.exit(BuildStep.RunBuildStep(RunBench)) | 59 sys.exit(BuildStep.RunBuildStep(RunBench)) |
| OLD | NEW |