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

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: Fix broken upload code 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
14 13
15 GIT = 'git.bat' if os.name == 'nt' else 'git' 14 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+)' 15 GIT_SVN_ID_MATCH_STR = r'git-svn-id: http://skia.googlecode.com/svn/trunk@(\d+)'
17 16
18 17
19 def BenchArgs(data_file): 18 def BenchArgs(data_file):
20 """Builds a list containing arguments to pass to bench. 19 """Builds a list containing arguments to pass to bench.
21 20
22 Args: 21 Args:
23 data_file: filepath to store the log output 22 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 63 # Add --outResultsFile flag here because it breaks bench_pictures.py
65 # if it was placed in there. 64 # if it was placed in there.
66 for builder_name_or_fragment in EXTRA_ARGS: 65 for builder_name_or_fragment in EXTRA_ARGS:
67 if builder_name_or_fragment in self._builder_name: 66 if builder_name_or_fragment in self._builder_name:
68 args.extend(EXTRA_ARGS[builder_name_or_fragment]) 67 args.extend(EXTRA_ARGS[builder_name_or_fragment])
69 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args) 68 self._flavor_utils.RunFlavoredCmd('bench', args + self._bench_args)
70 69
71 70
72 if '__main__' == __name__: 71 if '__main__' == __name__:
73 sys.exit(BuildStep.RunBuildStep(RunBench)) 72 sys.exit(BuildStep.RunBuildStep(RunBench))
OLDNEW
« no previous file with comments | « slave/skia_slave_scripts/bench_pictures.py ('k') | slave/skia_slave_scripts/upload_bench_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698