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>
Mon, 2 Apr 2018 17:08:27 +0000 (10:08 -0700)
commit6ebf8824e2eda039168cff05684590e5b3a98bff
treee05d62d664799d4782422f9f7ee72f2c7cda17d7
parent8c2705f568fffc69a6b22707d49771dac627f75c
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
perfprofd/binder_interface/perfprofd_binder.cc
perfprofd/configreader.cc
perfprofd/configreader.h
perfprofd/perfprofdcore.cc
perfprofd/tests/perfprofd_test.cc