From ae4af41040abe095a2acfd34049ce4f8a1b9318d Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Tue, 1 Jun 2021 16:23:24 +0200 Subject: 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) --- simpleperf/cmd_record_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simpleperf') 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". -- cgit v1.2.3