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

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

Issue 52833002: Purge unpinned ashmem before parsing /proc/$pid/smaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update documentation Created 7 years, 1 month 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 | Annotate | Revision Log
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 """Performance Test Bisect Tool 6 """Performance Test Bisect Tool
7 7
8 This script bisects a series of changelists using binary search. It starts at 8 This script bisects a series of changelists using binary search. It starts at
9 a bad revision where a performance metric has regressed, and asks for a last 9 a bad revision where a performance metric has regressed, and asks for a last
10 known-good revision. It will then binary search across this revision range by 10 known-good revision. It will then binary search across this revision range by
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 """Builds the android content shell and other necessary tools using options 504 """Builds the android content shell and other necessary tools using options
505 passed into the script. 505 passed into the script.
506 506
507 Args: 507 Args:
508 depot: Current depot being bisected. 508 depot: Current depot being bisected.
509 opts: The options parsed from the command line. 509 opts: The options parsed from the command line.
510 510
511 Returns: 511 Returns:
512 True if build was successful. 512 True if build was successful.
513 """ 513 """
514 targets = ['chromium_testshell', 'cc_perftests_apk', 'forwarder2', 'md5sum'] 514 targets = ['chromium_testshell', 'cc_perftests_apk', 'android_tools']
515 515
516 threads = None 516 threads = None
517 if opts.use_goma: 517 if opts.use_goma:
518 threads = 64 518 threads = 64
519 519
520 build_success = False 520 build_success = False
521 if opts.build_preference == 'ninja': 521 if opts.build_preference == 'ninja':
522 build_success = BuildWithNinja(threads, targets) 522 build_success = BuildWithNinja(threads, targets)
523 else: 523 else:
524 assert False, 'No build system defined.' 524 assert False, 'No build system defined.'
(...skipping 2381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 # The perf dashboard scrapes the "results" step in order to comment on 2906 # The perf dashboard scrapes the "results" step in order to comment on
2907 # bugs. If you change this, please update the perf dashboard as well. 2907 # bugs. If you change this, please update the perf dashboard as well.
2908 bisect_utils.OutputAnnotationStepStart('Results') 2908 bisect_utils.OutputAnnotationStepStart('Results')
2909 print 'Error: %s' % e.message 2909 print 'Error: %s' % e.message
2910 if opts.output_buildbot_annotations: 2910 if opts.output_buildbot_annotations:
2911 bisect_utils.OutputAnnotationStepClosed() 2911 bisect_utils.OutputAnnotationStepClosed()
2912 return 1 2912 return 1
2913 2913
2914 if __name__ == '__main__': 2914 if __name__ == '__main__':
2915 sys.exit(main()) 2915 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/android/purge_ashmem/purge_ashmem.gyp ('k') | tools/telemetry/bin/prebuilt/android/purge_ashmem.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698