OSDN Git Service

Perfprofd: Use ConfigReader for shellCommand startProfiling
authorAndreas Gampe <agampe@google.com>
Thu, 29 Mar 2018 21:52:57 +0000 (14:52 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 30 Mar 2018 15:47:46 +0000 (08:47 -0700)
commitf73ddfa2db064d284ee9fa9821595a597d5ff2cb
tree8fbba7be0b4483e0ad0967dd10214ad8e1258909
parent2b3f24a5961ba06e8ac8a08247839208c7f9a19c
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.

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
Change-Id: I7c437b43634aab70ea9463161fff6de303e427c8
perfprofd/binder_interface/perfprofd_binder.cc
perfprofd/configreader.cc
perfprofd/configreader.h
perfprofd/perfprofdcore.cc
perfprofd/tests/perfprofd_test.cc