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

Side by Side Diff: tools/run-bisect-perf-regression.py

Issue 645263002: Implementing direction_of_improvement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting new test case. Created 6 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Run Performance Test Bisect Tool 6 """Run Performance Test Bisect Tool
7 7
8 This script is used by a try bot to run the bisect script with the parameters 8 This script is used by a try bot to run the bisect script with the parameters
9 specified in the bisect config file. It checks out a copy of the depot in 9 specified in the bisect config file. It checks out a copy of the depot in
10 a subdirectory 'bisect' of the working directory provided, annd runs the 10 a subdirectory 'bisect' of the working directory provided, annd runs the
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 opts_dict['truncate_percent'] = int(config['truncate_percent']) 200 opts_dict['truncate_percent'] = int(config['truncate_percent'])
201 201
202 if config['max_time_minutes']: 202 if config['max_time_minutes']:
203 opts_dict['max_time_minutes'] = int(config['max_time_minutes']) 203 opts_dict['max_time_minutes'] = int(config['max_time_minutes'])
204 204
205 if config.has_key('use_goma'): 205 if config.has_key('use_goma'):
206 opts_dict['use_goma'] = config['use_goma'] 206 opts_dict['use_goma'] = config['use_goma']
207 if config.has_key('goma_dir'): 207 if config.has_key('goma_dir'):
208 opts_dict['goma_dir'] = config['goma_dir'] 208 opts_dict['goma_dir'] = config['goma_dir']
209 209
210 if config.has_key('direction_of_improvement'):
211 opts_dict['direction_of_improvement'] = config['direction_of_improvement']
212
210 opts_dict['build_preference'] = 'ninja' 213 opts_dict['build_preference'] = 'ninja'
211 opts_dict['output_buildbot_annotations'] = True 214 opts_dict['output_buildbot_annotations'] = True
212 215
213 if '--browser=cros' in config['command']: 216 if '--browser=cros' in config['command']:
214 opts_dict['target_platform'] = 'cros' 217 opts_dict['target_platform'] = 'cros'
215 218
216 if os.environ[CROS_BOARD_ENV] and os.environ[CROS_IP_ENV]: 219 if os.environ[CROS_BOARD_ENV] and os.environ[CROS_IP_ENV]:
217 opts_dict['cros_board'] = os.environ[CROS_BOARD_ENV] 220 opts_dict['cros_board'] = os.environ[CROS_BOARD_ENV]
218 opts_dict['cros_remote_ip'] = os.environ[CROS_IP_ENV] 221 opts_dict['cros_remote_ip'] = os.environ[CROS_IP_ENV]
219 else: 222 else:
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 if config and config_is_valid: 560 if config and config_is_valid:
558 return _SetupAndRunPerformanceTest(config, opts.path_to_goma) 561 return _SetupAndRunPerformanceTest(config, opts.path_to_goma)
559 562
560 print ('Error: Could not load config file. Double check your changes to ' 563 print ('Error: Could not load config file. Double check your changes to '
561 'auto_bisect/bisect.cfg or run-perf-test.cfg for syntax errors.\n') 564 'auto_bisect/bisect.cfg or run-perf-test.cfg for syntax errors.\n')
562 return 1 565 return 1
563 566
564 567
565 if __name__ == '__main__': 568 if __name__ == '__main__':
566 sys.exit(main()) 569 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698