simpleperf: share option formats with simpleperf_app_runner.
This CL avoids the need to define option formats in
simpleperf_app_runner. Each time an option is changed in simpleperf,
it's also changed in simpleperf_app_runner.
1. Use OptionFormatMap to parse options for api-collect and stat cmd.
2. Add OptionFormatMap for common options.
3. Add AppRunnerType in OptionFormat, and define its value for
each option in api-collect, stat and record cmd.
4. Use OptionFormatMap in simpleperf_app_runner.
Bug: 161387498
Test: run simpleperf_unit_test.
Test: run CtsSimpleperfTestCases.
Change-Id: Ib4600b4b62839dee1002eec090d7db86ce8fd346
10 files changed