commit | acbdb2456da4837a143d096a8a0563ba1dfc0507 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Tue Jul 07 15:56:34 2020 -0700 |
committer | Yabin Cui <yabinc@google.com> | Wed Jul 08 15:02:56 2020 -0700 |
tree | 9e07abefafc96e76fb9b065264fb67cb78c0d9ad | |
parent | 4f6808ce8d0a10cb4c8588ddd7ed275001da3154 [diff] |
simpleperf: add function to preprocess options. Add Command::PreprocessOptions() to extracts options from the argument list. It splits options into different types. Instead of replying on the order in the argument list, it allows a command choosing the order to process each option. Also put whole command.h in simpleperf namespace. Bug: 160701181 Test: run simpleperf_unit_test. Change-Id: I9b20e21a94797c322c1371cbe1704b3e2ce1be28