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

Unified Diff: tools/nanobench_flags.py

Issue 1036223002: Update [dm|nanobench]_flags for CPU/GPU split (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/nanobench_flags.py
diff --git a/tools/nanobench_flags.py b/tools/nanobench_flags.py
index cbd5c847961d601f61a356c36b390d63cc20c531..6c9b9dd07064b146bbe9a760802d83547cc8b9a9 100755
--- a/tools/nanobench_flags.py
+++ b/tools/nanobench_flags.py
@@ -1,8 +1,15 @@
+#
+# Copyright 2015 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+
#!/usr/bin/env python
usage = '''
Write extra flags to outfile for nanobench based on the bot name:
- $ python nanobench_flags.py outfile Perf-Android-GalaxyS3-Mali400-Arm7-Release
+ $ python nanobench_flags.py outfile Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release
Or run self-tests:
$ python nanobench_flags.py test
'''
@@ -40,10 +47,6 @@ def get_args(bot):
# Don't care about Valgrind performance.
args.extend(['--loops', '1'])
args.extend(['--samples', '1'])
- if 'Valgrind_GPU' in bot:
- args.append('--nocpu')
- elif 'Valgrind_CPU' in bot:
- args.append('--nogpu')
if 'HD2000' in bot:
args.extend(['--benchTileW', '256'])
@@ -63,10 +66,6 @@ def get_args(bot):
args.append('--match')
args.extend(match)
-
- if ('GalaxyS3' in bot or
- 'GalaxyS4' in bot):
- args.append('--nocpu')
return args
cov_end = lineno() # Don't care about code coverage past here.
@@ -75,11 +74,9 @@ def self_test():
import coverage # This way the bots don't need coverage.py to be installed.
args = {}
cases = [
- 'Perf-Android-GalaxyS3-Mali400-Arm7-Release',
'Perf-Android-Nexus7-Tegra3-Arm7-Release',
- 'Test-Ubuntu14-GCE-NoGPU-x86_64-Release-Valgrind_CPU',
- 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind_GPU',
- 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE',
+ 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
+ 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
]
cov = coverage.coverage()
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698