diff options
author | Luca Weiss <luca.weiss@fairphone.com> | 2021-06-01 16:23:24 +0200 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2021-06-01 11:50:25 -0700 |
commit | ae4af41040abe095a2acfd34049ce4f8a1b9318d (patch) | |
tree | 155bd114f3509aa408daf27a0f3002f1bf4d6d40 | |
parent | c4d103c8757dcf7b9024855795854d9eb9c73650 (diff) | |
download | extras-ae4af41040abe095a2acfd34049ce4f8a1b9318d.tar.gz |
simpleperf: increase record duration
Fixes CTS tests in CtsSimpleperfTestCases:
* record_cmd#app_option_for_debuggable_app
* record_cmd#app_option_for_profileable_app
Bug: 189726439
Test: run CtsSimpleperfTestCases
Change-Id: Iedac3d8a1817043b82d320b57b8c5b89b9b4defd
(cherry picked from commit 0f18a172b772f0c57ea38f36ea514ac64c9a1cce)
-rw-r--r-- | simpleperf/cmd_record_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp index 869c747f..350a24f8 100644 --- a/simpleperf/cmd_record_test.cpp +++ b/simpleperf/cmd_record_test.cpp @@ -725,7 +725,7 @@ static void TestRecordingApps(const std::string& app_name, const std::string& ap // Bring the app to foreground to avoid no samples. ASSERT_TRUE(helper.StartApp("am start " + app_name + "/.MainActivity")); - ASSERT_TRUE(helper.RecordData("--app " + app_name + " -g --duration 3 -e " + GetDefaultEvent())); + ASSERT_TRUE(helper.RecordData("--app " + app_name + " -g --duration 10 -e " + GetDefaultEvent())); // Check if we can profile Java code by looking for a Java method name in dumped symbols, which // is app_name + ".MainActivity$1.run". |