From 14a3c1103c3da545614a87053b8873d2459a1c8b Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Fri, 21 Apr 2023 14:49:47 -0700 Subject: [bufferqueue] Add better trace points for buffer allocations Add tracepoints to understand why a buffer was reallocated. Also trace changes to the queue that can affect queue size. Test: check traces in perfetto Fixes: 279220179 Change-Id: Ifaff0851200d8faa9644c23d49009a3932f6e01f --- libs/gui/BufferQueueConsumer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/gui/BufferQueueConsumer.cpp') diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp index 7f7a0437f1..52172090af 100644 --- a/libs/gui/BufferQueueConsumer.cpp +++ b/libs/gui/BufferQueueConsumer.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #ifndef __ANDROID_VNDK__ @@ -646,7 +647,7 @@ status_t BufferQueueConsumer::setMaxBufferCount(int bufferCount) { status_t BufferQueueConsumer::setMaxAcquiredBufferCount( int maxAcquiredBuffers) { - ATRACE_CALL(); + ATRACE_FORMAT("%s(%d)", __func__, maxAcquiredBuffers); if (maxAcquiredBuffers < 1 || maxAcquiredBuffers > BufferQueueCore::MAX_MAX_ACQUIRED_BUFFERS) { -- cgit v1.2.3-59-g8ed1b