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

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

Issue 393593003: Run nanobench on perf bots. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: rebase Created 6 years, 5 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
OLDNEW
(Empty)
1 #!/usr/bin/env python
borenet 2014/07/14 19:55:01 Same comment as in https://codereview.chromium.org
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
4 # found in the LICENSE file.
5
6 """Run the Skia benchmarking executable."""
7
8 import os
9 import sys
10
11 from build_step import BuildStep
12 from utils import gclient_utils
13
14 class RunNanobench(BuildStep):
15 """A BuildStep that runs nanobench."""
16
17 def __init__(self, timeout=9600, no_output_timeout=9600, **kwargs):
18 super(RunBench, self).__init__(timeout=timeout,
19 no_output_timeout=no_output_timeout,
20 **kwargs)
21
22 def _JSONPath(self):
23 git_timestamp = gclient_utils.GetGitRepoPOSIXTimestamp()
24 return os.path.join(
25 self._device_dirs.PerfDir(),
26 'nanobench_%s_%s.json' % ( self._got_revision, git_timestamp))
27
28 def _Run(self):
29 args = ['-i', self._device_dirs.ResourceDir()]
30 if self._perf_data_dir:
31 args.extend(['--outResultsFile', self._JSONPath()])
32 self._flavor_utils.RunFlavoredCmd('nanobench', args)
33
34
35 if '__main__' == __name__:
36 sys.exit(BuildStep.RunBuildStep(RunNanobench))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698