OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |