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

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

Issue 304393002: Adds uploading picture benchmark JSON data (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 6 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
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 import os 8 import os
9 import sys 9 import sys
10 10
11 from build_step import BuildStep 11 from build_step import BuildStep
12 from utils import gclient_utils 12 from utils import gclient_utils
13 from utils import misc 13 from utils import misc # Looks like this is removable?
benchen 2014/05/29 22:20:09 Yes, it seems unused. Please remove. Thanks.
kelvinly 2014/05/30 00:44:51 Done.
14 14
15 GIT = 'git.bat' if os.name == 'nt' else 'git' 15 GIT = 'git.bat' if os.name == 'nt' else 'git'
16 GIT_SVN_ID_MATCH_STR = r'git-svn-id: http://skia.googlecode.com/svn/trunk@(\d+)' 16 GIT_SVN_ID_MATCH_STR = r'git-svn-id: http://skia.googlecode.com/svn/trunk@(\d+)'
17 17
18 18
19 def BenchArgs(data_file): 19 def BenchArgs(data_file):
20 """Builds a list containing arguments to pass to bench. 20 """Builds a list containing arguments to pass to bench.
21 21
22 Args: 22 Args:
23 data_file: filepath to store the log output 23 data_file: filepath to store the log output
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 # Add --outResultsFile flag here because it breaks bench_pictures.py 64 # Add --outResultsFile flag here because it breaks bench_pictures.py
65 # if it was placed in there. 65 # if it was placed in there.
66 for builder_name_or_fragment in EXTRA_ARGS: 66 for builder_name_or_fragment in EXTRA_ARGS:
67 if builder_name_or_fragment in self._builder_name: 67 if builder_name_or_fragment in self._builder_name:
68 args.extend(EXTRA_ARGS[builder_name_or_fragment]) 68 args.extend(EXTRA_ARGS[builder_name_or_fragment])
69 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args) 69 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args)
70 70
71 71
72 if '__main__' == __name__: 72 if '__main__' == __name__:
73 sys.exit(BuildStep.RunBuildStep(RunBench)) 73 sys.exit(BuildStep.RunBuildStep(RunBench))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698