summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2021-04-28 14:42:24 +0200
committerLuca Weiss <luca.weiss@fairphone.com>2021-06-01 16:24:55 +0200
commitf4c5261d008fd0726e05c2d46a43a0bc5e9f4ee5 (patch)
treed81e1cdb13f339c31e02f3361669b43e4dd60e4c
parent1b0881c929f311b92e0ffd9295a9087ec55734c1 (diff)
downloadextras-f4c5261d008fd0726e05c2d46a43a0bc5e9f4ee5.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 Change-Id: Iedac3d8a1817043b82d320b57b8c5b89b9b4defd
-rw-r--r--simpleperf/cmd_record_test.cpp2
1 files changed, 1 insertions, 1 deletions
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<RecordFileReader> reader = RecordFileReader::CreateInstance(tmpfile.path);
ASSERT_TRUE(reader);
// Check if having samples.