[Telemetry] Updates record_wpr to use argparse.
This patch updates record_wpr to use argparse for: + record_wpr <XYZ> will make <XYZ> a benchmark name to be recorded. + record_wpr --user-story <XYZ> will make <XYZ> a user story (page set) name to be recorded + record_wpr --list-benchmarks & --list-user-stories will list out benchmark names & user stories (page sets) names. This is useful since the current record_wpr target name matching is a bit funky due to discover.DiscoverClasses's keys naming scheme. Subsequent patches will update it so that the target matching name for benchmarks matched the convention in benchmark_runner.py & matching name for user stories use the user stories's class name. Since more code refactoring are required, I haven't added unittest for these new changes yet. TEST=" git cl patch this. ./perf/record_wpr --help ./perf/record_wpr --list-user-stories ./perf/record_wpr --list-bechmarks " BUG=470865 Review URL: https://codereview.chromium.org/1147533004 Cr-Commit-Position: refs/heads/master@{#330206}
Showing
Please register or sign in to comment