diff options
author | Yabin Cui <yabinc@google.com> | 2021-05-11 11:29:38 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2021-05-11 16:27:17 -0700 |
commit | 8729bc61934e1876315b63ceadbcde242edecbcf (patch) | |
tree | 44a30f369de4f59c53b98b8f0e11d3c4872f726e /simpleperf/cmd_record.cpp | |
parent | 7a6d98b1fdcdc80c3a7862c5037c8730dcf70d62 (diff) | |
download | extras-8729bc61934e1876315b63ceadbcde242edecbcf.tar.gz |
simpleperf: add app_type in meta info.
app_type shows whether the recorded app is debuggable or profileable.
When recording via run-as, the app is thought of as debuggable.
When recording via simpleperf_app_runner, the app is thought of as profileable.
Bug: 186469540
Test: run simpleperf_unit_test
Test: run CtsSimpleperfTestCases.
Change-Id: If4c379401921b253bb52fcf0bdaab3115232f4be
Diffstat (limited to 'simpleperf/cmd_record.cpp')
-rw-r--r-- | simpleperf/cmd_record.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_record.cpp b/simpleperf/cmd_record.cpp index 24399ab9..2e646bb4 100644 --- a/simpleperf/cmd_record.cpp +++ b/simpleperf/cmd_record.cpp @@ -1162,7 +1162,7 @@ bool RecordCommand::AdjustPerfEventLimit() { set_prop = true; } - if (GetAndroidVersion() >= kAndroidVersionP + 1 && set_prop && !in_app_context_) { + if (GetAndroidVersion() >= kAndroidVersionQ && set_prop && !in_app_context_) { return SetPerfEventLimits(std::max(max_sample_freq_, cur_max_freq), cpu_time_max_percent_, std::max(mlock_kb, cur_mlock_kb)); } |