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

Side by Side Diff: tools/nanobench_flags.py

Issue 1022083002: Only use 256x256 tiles on hd2000 nanobench bots (Closed) Base URL: https://skia.googlesource.com/skia.git@nanobenchTileSize
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 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 usage = ''' 3 usage = '''
4 Write extra flags to outfile for nanobench based on the bot name: 4 Write extra flags to outfile for nanobench based on the bot name:
5 $ python nanobench_flags.py outfile Perf-Android-GalaxyS3-Mali400-Arm7-Release 5 $ python nanobench_flags.py outfile Perf-Android-GalaxyS3-Mali400-Arm7-Release
6 Or run self-tests: 6 Or run self-tests:
7 $ python nanobench_flags.py test 7 $ python nanobench_flags.py test
8 ''' 8 '''
9 9
10 import inspect 10 import inspect
(...skipping 27 matching lines...) Expand all
38 38
39 if 'Valgrind' in bot: 39 if 'Valgrind' in bot:
40 # Don't care about Valgrind performance. 40 # Don't care about Valgrind performance.
41 args.extend(['--loops', '1']) 41 args.extend(['--loops', '1'])
42 args.extend(['--samples', '1']) 42 args.extend(['--samples', '1'])
43 if 'Valgrind_GPU' in bot: 43 if 'Valgrind_GPU' in bot:
44 args.append('--nocpu') 44 args.append('--nocpu')
45 elif 'Valgrind_CPU' in bot: 45 elif 'Valgrind_CPU' in bot:
46 args.append('--nogpu') 46 args.append('--nogpu')
47 47
48 if 'HD2000' in bot:
49 args.extend(['--benchTileW', '256'])
50 args.extend(['--benchTileH', '256'])
51
48 match = [] 52 match = []
49 if 'Android' in bot: 53 if 'Android' in bot:
50 # Segfaults when run as GPU bench. Very large texture? 54 # Segfaults when run as GPU bench. Very large texture?
51 match.append('~blurroundrect') 55 match.append('~blurroundrect')
52 match.append('~patch_grid') # skia:2847 56 match.append('~patch_grid') # skia:2847
53 match.append('~desk_carsvg') 57 match.append('~desk_carsvg')
54 if 'HD2000' in bot: 58 if 'HD2000' in bot:
55 match.extend(['~gradient', '~etc1bitmap']) # skia:2895 59 match.extend(['~gradient', '~etc1bitmap']) # skia:2895
56 if 'Nexus7' in bot: 60 if 'Nexus7' in bot:
57 match = ['skp'] # skia:2774 61 match = ['skp'] # skia:2774
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if len(sys.argv) == 2 and sys.argv[1] == 'test': 104 if len(sys.argv) == 2 and sys.argv[1] == 'test':
101 self_test() 105 self_test()
102 sys.exit(0) 106 sys.exit(0)
103 107
104 if len(sys.argv) != 3: 108 if len(sys.argv) != 3:
105 print usage 109 print usage
106 sys.exit(1) 110 sys.exit(1)
107 111
108 with open(sys.argv[1], 'w') as out: 112 with open(sys.argv[1], 'w') as out:
109 json.dump(get_args(sys.argv[2]), out) 113 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