From f4c5261d008fd0726e05c2d46a43a0bc5e9f4ee5 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Wed, 28 Apr 2021 14:42: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 Change-Id: Iedac3d8a1817043b82d320b57b8c5b89b9b4defd --- simpleperf/cmd_record_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp index 7ae589d7..748fdf24 100644 --- a/simpleperf/cmd_record_test.cpp +++ b/simpleperf/cmd_record_test.cpp @@ -752,7 +752,7 @@ static void TestRecordingApps(const std::string& app_name) { // Bring the app to foreground to avoid no samples. ASSERT_TRUE(Workload::RunCmd({"am", "start", app_name + "/.MainActivity"})); TemporaryFile tmpfile; - ASSERT_TRUE(RecordCmd()->Run({"-o", tmpfile.path, "--app", app_name, "-g", "--duration", "3"})); + ASSERT_TRUE(RecordCmd()->Run({"-o", tmpfile.path, "--app", app_name, "-g", "--duration", "10"})); std::unique_ptr reader = RecordFileReader::CreateInstance(tmpfile.path); ASSERT_TRUE(reader); // Check if having samples. -- cgit v1.2.3