OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 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 """Chromium auto-bisect tool | 6 """Chromium auto-bisect tool |
7 | 7 |
8 This script bisects a range of commits using binary search. It starts by getting | 8 This script bisects a range of commits using binary search. It starts by getting |
9 reference values for the specified "good" and "bad" commits. Then, for revisions | 9 reference values for the specified "good" and "bad" commits. Then, for revisions |
10 in between, it will get builds, run tests and classify intermediate revisions as | 10 in between, it will get builds, run tests and classify intermediate revisions as |
11 "good" or "bad" until an adjacent "good" and "bad" revision is found; this is | 11 "good" or "bad" until an adjacent "good" and "bad" revision is found; this is |
12 the culprit. | 12 the culprit. |
13 | 13 |
14 If the culprit is a roll if a depedency repository (e.g. v8), it will then | 14 If the culprit is a roll of a depedency repository (e.g. v8), it will then |
15 expand the revision range and continue the bisect until a culprit revision in | 15 expand the revision range and continue the bisect until a culprit revision in |
16 the dependency repository is found. | 16 the dependency repository is found. |
17 | 17 |
18 Example usage using git commit hashes, bisecting a performance test based on | 18 Example usage using git commit hashes, bisecting a performance test based on |
19 the mean value of a particular metric: | 19 the mean value of a particular metric: |
20 | 20 |
21 ./tools/auto_bisect/bisect_perf_regression.py | 21 ./tools/auto_bisect/bisect_perf_regression.py |
22 --command "out/Release/performance_ui_tests \ | 22 --command "out/Release/performance_ui_tests \ |
23 --gtest_filter=ShutdownTest.SimpleUserQuit"\ | 23 --gtest_filter=ShutdownTest.SimpleUserQuit"\ |
24 --metric shutdown/simple-user-quit | 24 --metric shutdown/simple-user-quit |
(...skipping 2795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2820 # bugs. If you change this, please update the perf dashboard as well. | 2820 # bugs. If you change this, please update the perf dashboard as well. |
2821 bisect_utils.OutputAnnotationStepStart('Results') | 2821 bisect_utils.OutputAnnotationStepStart('Results') |
2822 print 'Runtime Error: %s' % e | 2822 print 'Runtime Error: %s' % e |
2823 if opts.output_buildbot_annotations: | 2823 if opts.output_buildbot_annotations: |
2824 bisect_utils.OutputAnnotationStepClosed() | 2824 bisect_utils.OutputAnnotationStepClosed() |
2825 return 1 | 2825 return 1 |
2826 | 2826 |
2827 | 2827 |
2828 if __name__ == '__main__': | 2828 if __name__ == '__main__': |
2829 sys.exit(main()) | 2829 sys.exit(main()) |
OLD | NEW |