diff options
author | Yabin Cui <yabinc@google.com> | 2021-05-12 17:36:02 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2021-05-13 16:12:41 -0700 |
commit | db19d6d5d093c652ecf79f82bf3826f09e9ce21f (patch) | |
tree | 60fbde12f5af45d39a004d9ea28d8704ac4f8fcb /simpleperf/cmd_record_test.cpp | |
parent | 16508f8394b00afb72e14aaa5447db976ca3207e (diff) | |
download | extras-db19d6d5d093c652ecf79f82bf3826f09e9ce21f.tar.gz |
simpleperf: add --show-app-type in simpleperf_app_runner.
It shows whether an app is debuggable or profileable.
Use it to decide whether to use run-as or simpleperf_app_runner
to profile an app. Also use it to store app_type in meta_info.
Bug: 186469540
Test: run simpleperf_unit_test.
Test: run CtsSimpleperfTestCases.
Change-Id: If36dc3d88a7ac4cbca803e5b0565a4fdda2755cb
Diffstat (limited to 'simpleperf/cmd_record_test.cpp')
-rw-r--r-- | simpleperf/cmd_record_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp index 3e0b9e1a..9d318a50 100644 --- a/simpleperf/cmd_record_test.cpp +++ b/simpleperf/cmd_record_test.cpp @@ -754,8 +754,7 @@ TEST(record_cmd, app_option_for_debuggable_app) { SetRunInAppToolForTesting(true, false); TestRecordingApps("com.android.simpleperf.debuggable", "debuggable"); SetRunInAppToolForTesting(false, true); - // Although the app is actually debuggable, we profile the app using simpleperf_app_runner. - TestRecordingApps("com.android.simpleperf.debuggable", "profileable"); + TestRecordingApps("com.android.simpleperf.debuggable", "debuggable"); } TEST(record_cmd, app_option_for_profileable_app) { |