| 674 | help="specify iterations for each website (default: once)") |
| 675 | |
| 676 | def add_replay_args(subparser): |
| 677 | subparser.add_argument( |
| 678 | "-k", "--refresh", type=int, metavar="<num>", default=0, |
| 679 | help="specify refreshes for each iteration (default: 0)") |
| 680 | subparser.add_argument( |
| 681 | "--replay-wpr", type=str, metavar="<path>", |
| 682 | help="use the specified web page replay (.wpr) archive") |
| 683 | subparser.add_argument( |
| 684 | "--replay-bin", type=str, metavar="<path>", |
| 685 | help="specify the replay.py script typically located in " \ |
| 686 | "$CHROMIUM/src/third_party/webpagereplay/replay.py") |
| 687 | subparser.add_argument( |
| 688 | "-f", "--sites-file", type=str, metavar="<path>", |
| 689 | help="specify file containing benchmark websites") |
| 690 | subparser.add_argument( |
| 691 | "-t", "--timeout", type=int, metavar="<seconds>", default=60, |
| 692 | help="specify seconds before chrome is killed") |
| 693 | subparser.add_argument( |
| 694 | "-p", "--port-offset", type=int, metavar="<offset>", default=0, |
| 695 | help="specify the offset for the replay server's default ports") |
| 696 | subparser.add_argument( |
| 697 | "-l", "--log-stderr", type=str, metavar="<path>", |
| 698 | help="specify where chrome's stderr should go (default: /dev/null)") |
| 699 | subparser.add_argument( |
| 700 | "--sites", type=str, metavar="<URL>", nargs="*", |
| 701 | help="specify benchmark website") |
| 702 | add_replay_args(subparsers["run"]) |
| 703 | |
| 704 | # Command: replay-server |