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

Side by Side Diff: tools/nanobench_flags.py

Issue 1363963002: Blacklist GLInstancedArraysBench for GalaxyS4 due to skia:4371 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 match = [] 60 match = []
61 if 'Android' in bot: 61 if 'Android' in bot:
62 # Segfaults when run as GPU bench. Very large texture? 62 # Segfaults when run as GPU bench. Very large texture?
63 match.append('~blurroundrect') 63 match.append('~blurroundrect')
64 match.append('~patch_grid') # skia:2847 64 match.append('~patch_grid') # skia:2847
65 match.append('~desk_carsvg') 65 match.append('~desk_carsvg')
66 if 'HD2000' in bot: 66 if 'HD2000' in bot:
67 match.extend(['~gradient', '~etc1bitmap']) # skia:2895 67 match.extend(['~gradient', '~etc1bitmap']) # skia:2895
68 if 'NexusPlayer' in bot: 68 if 'NexusPlayer' in bot:
69 match.append('~desk_unicodetable') 69 match.append('~desk_unicodetable')
70 if 'GalaxyS4' in bot:
71 match.append('~GLInstancedArraysBench') # skia:4371
70 72
71 if 'iOS' in bot: 73 if 'iOS' in bot:
72 match.append('~blurroundrect') 74 match.append('~blurroundrect')
73 match.append('~patch_grid') # skia:2847 75 match.append('~patch_grid') # skia:2847
74 match.append('~desk_carsvg') 76 match.append('~desk_carsvg')
75 match.append('~keymobi') 77 match.append('~keymobi')
76 match.append('~path_hairline') 78 match.append('~path_hairline')
77 79
78 if match: 80 if match:
79 args.append('--match') 81 args.append('--match')
80 args.extend(match) 82 args.extend(match)
81 83
82 return args 84 return args
83 cov_end = lineno() # Don't care about code coverage past here. 85 cov_end = lineno() # Don't care about code coverage past here.
84 86
85 87
86 def self_test(): 88 def self_test():
87 import coverage # This way the bots don't need coverage.py to be installed. 89 import coverage # This way the bots don't need coverage.py to be installed.
88 args = {} 90 args = {}
89 cases = [ 91 cases = [
90 'Perf-Android-Nexus7-Tegra3-Arm7-Release', 92 'Perf-Android-Nexus7-Tegra3-Arm7-Release',
91 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release', 93 'Perf-Android-GCC-NexusPlayer-GPU-PowerVR-x86-Release',
92 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 94 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
93 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 95 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
94 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 96 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
97 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
95 ] 98 ]
96 99
97 cov = coverage.coverage() 100 cov = coverage.coverage()
98 cov.start() 101 cov.start()
99 for case in cases: 102 for case in cases:
100 args[case] = get_args(case) 103 args[case] = get_args(case)
101 cov.stop() 104 cov.stop()
102 105
103 this_file = os.path.basename(__file__) 106 this_file = os.path.basename(__file__)
104 _, _, not_run, _ = cov.analysis(this_file) 107 _, _, not_run, _ = cov.analysis(this_file)
(...skipping 11 matching lines...) Expand all
116 if len(sys.argv) == 2 and sys.argv[1] == 'test': 119 if len(sys.argv) == 2 and sys.argv[1] == 'test':
117 self_test() 120 self_test()
118 sys.exit(0) 121 sys.exit(0)
119 122
120 if len(sys.argv) != 3: 123 if len(sys.argv) != 3:
121 print usage 124 print usage
122 sys.exit(1) 125 sys.exit(1)
123 126
124 with open(sys.argv[1], 'w') as out: 127 with open(sys.argv[1], 'w') as out:
125 json.dump(get_args(sys.argv[2]), out) 128 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