| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 the V8 project authors. All rights reserved. | 2 # Copyright 2016 the V8 project 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 Usage: runtime-call-stats.py [-h] <command> ... | 6 Usage: callstats.py [-h] <command> ... |
| 7 | 7 |
| 8 Optional arguments: | 8 Optional arguments: |
| 9 -h, --help show this help message and exit | 9 -h, --help show this help message and exit |
| 10 | 10 |
| 11 Commands: | 11 Commands: |
| 12 run run chrome with --runtime-call-stats and generate logs | 12 run run chrome with --runtime-call-stats and generate logs |
| 13 stats process logs and print statistics | 13 stats process logs and print statistics |
| 14 json process logs from several versions and generate JSON | 14 json process logs from several versions and generate JSON |
| 15 help help information | 15 help help information |
| 16 | 16 |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 args.error("use either option --sites-file or site URLs") | 629 args.error("use either option --sites-file or site URLs") |
| 630 sys.exit(1) | 630 sys.exit(1) |
| 631 elif args.command == "run" and not coexist(args.replay_wpr, args.replay_bin): | 631 elif args.command == "run" and not coexist(args.replay_wpr, args.replay_bin): |
| 632 args.error("options --replay-wpr and --replay-bin must be used together") | 632 args.error("options --replay-wpr and --replay-bin must be used together") |
| 633 sys.exit(1) | 633 sys.exit(1) |
| 634 else: | 634 else: |
| 635 args.func(args) | 635 args.func(args) |
| 636 | 636 |
| 637 if __name__ == "__main__": | 637 if __name__ == "__main__": |
| 638 sys.exit(main()) | 638 sys.exit(main()) |
| OLD | NEW |