OLD | NEW |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 # so defensively disable them in nanobench, too. | 91 # so defensively disable them in nanobench, too. |
92 # FIXME (scroggo): This may have just been due to SkImageDecoder's | 92 # FIXME (scroggo): This may have just been due to SkImageDecoder's |
93 # buildTileIndex leaking memory (https://bug.skia.org/4360). That is | 93 # buildTileIndex leaking memory (https://bug.skia.org/4360). That is |
94 # disabled by default for nanobench, so we may not need this. | 94 # disabled by default for nanobench, so we may not need this. |
95 # FIXME (scroggo): Share image blacklists between dm and nanobench? | 95 # FIXME (scroggo): Share image blacklists between dm and nanobench? |
96 if 'x86' in bot and not 'x86-64' in bot: | 96 if 'x86' in bot and not 'x86-64' in bot: |
97 match.append('~interlaced1.png') | 97 match.append('~interlaced1.png') |
98 match.append('~interlaced2.png') | 98 match.append('~interlaced2.png') |
99 match.append('~interlaced3.png') | 99 match.append('~interlaced3.png') |
100 | 100 |
| 101 # This low-end Android bot crashes about 25% of the time while running the |
| 102 # (somewhat intense) shapes benchmarks. |
| 103 if 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release' in bot: |
| 104 match.append('~shapes_') |
| 105 |
101 # We do not need or want to benchmark the decodes of incomplete images. | 106 # We do not need or want to benchmark the decodes of incomplete images. |
102 # In fact, in nanobench we assert that the full image decode succeeds. | 107 # In fact, in nanobench we assert that the full image decode succeeds. |
103 match.append('~inc0.gif') | 108 match.append('~inc0.gif') |
104 match.append('~inc1.gif') | 109 match.append('~inc1.gif') |
105 match.append('~incInterlaced.gif') | 110 match.append('~incInterlaced.gif') |
106 match.append('~inc0.jpg') | 111 match.append('~inc0.jpg') |
107 match.append('~incGray.jpg') | 112 match.append('~incGray.jpg') |
108 match.append('~inc0.wbmp') | 113 match.append('~inc0.wbmp') |
109 match.append('~inc1.wbmp') | 114 match.append('~inc1.wbmp') |
110 match.append('~inc0.webp') | 115 match.append('~inc0.webp') |
(...skipping 21 matching lines...) Expand all Loading... |
132 cov_end = lineno() # Don't care about code coverage past here. | 137 cov_end = lineno() # Don't care about code coverage past here. |
133 | 138 |
134 | 139 |
135 def self_test(): | 140 def self_test(): |
136 import coverage # This way the bots don't need coverage.py to be installed. | 141 import coverage # This way the bots don't need coverage.py to be installed. |
137 args = {} | 142 args = {} |
138 cases = [ | 143 cases = [ |
139 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', | 144 'Perf-Android-GCC-Nexus6-GPU-Adreno420-Arm7-Release', |
140 'Perf-Android-Nexus7-Tegra3-Arm7-Release', | 145 'Perf-Android-Nexus7-Tegra3-Arm7-Release', |
141 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', | 146 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', |
| 147 'Perf-Android-GCC-GalaxyS3-GPU-Mali400-Arm7-Release', |
142 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', | 148 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', |
143 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', | 149 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', |
144 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', | 150 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', |
145 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', | 151 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', |
146 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', | 152 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot', |
147 ] | 153 ] |
148 | 154 |
149 cov = coverage.coverage() | 155 cov = coverage.coverage() |
150 cov.start() | 156 cov.start() |
151 for case in cases: | 157 for case in cases: |
(...skipping 16 matching lines...) Expand all Loading... |
168 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 174 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
169 self_test() | 175 self_test() |
170 sys.exit(0) | 176 sys.exit(0) |
171 | 177 |
172 if len(sys.argv) != 3: | 178 if len(sys.argv) != 3: |
173 print usage | 179 print usage |
174 sys.exit(1) | 180 sys.exit(1) |
175 | 181 |
176 with open(sys.argv[1], 'w') as out: | 182 with open(sys.argv[1], 'w') as out: |
177 json.dump(get_args(sys.argv[2]), out) | 183 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |