Perfprofd: Use ConfigReader for shellCommand startProfiling
Use the ConfigReader for parsing arguments to startProfiling, so
that new arguments can be transparently picked up. This diverges
it from the AIDL interface, but is more functional and maintainable.
Also adjust some bounds.
(cherry picked from commit
f73ddfa2db064d284ee9fa9821595a597d5ff2cb)
Bug:
73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Test: manual: adb shell cmd perfprofd startProfiling main_loop_iterations=2 compress=1 stack_profile=0 sampling_period=10000 sample_duration=10 collection_interval=1
Test: manual: adb shell cmd perfprofd startProfiling main_loop_iterations=2 compress=1 stack_profile=0 sampling_period=10000 sample_duration=10 collection_interval=1 bla
Merged-In: I7c437b43634aab70ea9463161fff6de303e427c8
Change-Id: I7c437b43634aab70ea9463161fff6de303e427c8