diff options
author | Daniele Di Proietto <ddiproietto@google.com> | 2024-02-26 18:39:02 +0000 |
---|---|---|
committer | Daniele Di Proietto <ddiproietto@google.com> | 2024-03-11 10:02:20 +0000 |
commit | f72898be3ecbc4c9c44e629774b486d4533fc891 (patch) | |
tree | 7b8b271b867aebc0fcb58729f2c02c55a600e81e | |
parent | 98a1d0817c57530b26dfd09296eca4c5d22ef888 (diff) | |
download | perfetto-f72898be3ecbc4c9c44e629774b486d4533fc891.tar.gz |
Increase heap profiling trace durationandroid12L-tests-dev
These tests:
1A. Start an app.
1B. Start recording a heap profile on that app (in some tests the
operations are reversed).
(In some cases 1A and 1B are swapped)
2. The trace is recorded for 4 seconds.
After 4 seconds, the tests read the trace and check for recorded memory
allocations.
On some particularly slow devices we've observed that the test app takes
more than 4 seconds to start.
Increasing the trace recording duration makes the test slower, but makes
it work also on slow devices.
Bug: 323332122
Merged-In: Ib3bdde1449d0e482e5428c1751381eae100e3536
Change-Id: Ib3bdde1449d0e482e5428c1751381eae100e3536
(cherry picked from commit 8fc000d37cce32a26661745b2ddcc1f7ddabc268)
-rw-r--r-- | test/cts/heapprofd_test_cts.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cts/heapprofd_test_cts.cc b/test/cts/heapprofd_test_cts.cc index 273efd893..d97e613dd 100644 --- a/test/cts/heapprofd_test_cts.cc +++ b/test/cts/heapprofd_test_cts.cc @@ -77,7 +77,7 @@ std::vector<protos::gen::TracePacket> ProfileRuntime( TraceConfig trace_config; trace_config.add_buffers()->set_size_kb(10 * 1024); - trace_config.set_duration_ms(4000); + trace_config.set_duration_ms(8000); trace_config.set_unique_session_name(RandomSessionName().c_str()); auto* ds_config = trace_config.add_data_sources()->mutable_config(); @@ -117,7 +117,7 @@ std::vector<protos::gen::TracePacket> ProfileStartup( TraceConfig trace_config; trace_config.add_buffers()->set_size_kb(10 * 1024); - trace_config.set_duration_ms(4000); + trace_config.set_duration_ms(8000); trace_config.set_enable_extra_guardrails(enable_extra_guardrails); trace_config.set_unique_session_name(RandomSessionName().c_str()); |