Description[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
Committed: https://crrev.com/0272cae5fa1c70ec751fd5dd19b31a368babc0c8
Cr-Commit-Position: refs/heads/master@{#330206}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : user-story -> story #Messages
Total messages: 11 (3 generated)
|