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

Side by Side Diff: tools/nanobench_flags.py

Issue 1684653002: enable ThermalManager on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 10 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
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 15 matching lines...) Expand all
26 26
27 27
28 cov_start = lineno()+1 # We care about coverage starting just past this def. 28 cov_start = lineno()+1 # We care about coverage starting just past this def.
29 def get_args(bot): 29 def get_args(bot):
30 args = ['--pre_log'] 30 args = ['--pre_log']
31 31
32 if 'GPU' in bot: 32 if 'GPU' in bot:
33 args.append('--images') 33 args.append('--images')
34 args.extend(['--gpuStatsDump', 'true']) 34 args.extend(['--gpuStatsDump', 'true'])
35 35
36 if 'Android' in bot and 'GPU' in bot:
37 args.extend(['--useThermalManager', '1,1,10,1000'])
38
36 if 'Appurify' not in bot: 39 if 'Appurify' not in bot:
37 args.extend(['--scales', '1.0', '1.1']) 40 args.extend(['--scales', '1.0', '1.1'])
38 41
39 if 'iOS' in bot: 42 if 'iOS' in bot:
40 args.extend(['--skps', 'ignore_skps']) 43 args.extend(['--skps', 'ignore_skps'])
41 44
42 if 'Appurify' not in bot: 45 if 'Appurify' not in bot:
43 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] 46 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui']
44 # The S4 crashes and the NP produces a long error stream when we run with 47 # The S4 crashes and the NP produces a long error stream when we run with
45 # MSAA. 48 # MSAA.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 args.extend(match) 125 args.extend(match)
123 126
124 return args 127 return args
125 cov_end = lineno() # Don't care about code coverage past here. 128 cov_end = lineno() # Don't care about code coverage past here.
126 129
127 130
128 def self_test(): 131 def self_test():
129 import coverage # This way the bots don't need coverage.py to be installed. 132 import coverage # This way the bots don't need coverage.py to be installed.
130 args = {} 133 args = {}
131 cases = [ 134 cases = [
135 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release',
132 'Perf-Android-Nexus7-Tegra3-Arm7-Release', 136 'Perf-Android-Nexus7-Tegra3-Arm7-Release',
133 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', 137 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release',
134 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 138 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
135 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 139 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
136 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 140 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
137 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', 141 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
138 ] 142 ]
139 143
140 cov = coverage.coverage() 144 cov = coverage.coverage()
141 cov.start() 145 cov.start()
(...skipping 17 matching lines...) Expand all
159 if len(sys.argv) == 2 and sys.argv[1] == 'test': 163 if len(sys.argv) == 2 and sys.argv[1] == 'test':
160 self_test() 164 self_test()
161 sys.exit(0) 165 sys.exit(0)
162 166
163 if len(sys.argv) != 3: 167 if len(sys.argv) != 3:
164 print usage 168 print usage
165 sys.exit(1) 169 sys.exit(1)
166 170
167 with open(sys.argv[1], 'w') as out: 171 with open(sys.argv[1], 'w') as out:
168 json.dump(get_args(sys.argv[2]), out) 172 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« 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