commit | 7ba67075d444bb23bd53af8286eaff647e5ec057 | [log] [tgz] |
---|---|---|
author | Arun Johnson <arunjohnson@google.com> | Mon Nov 06 22:23:04 2023 +0000 |
committer | Sungtak Lee <taklee@google.com> | Mon Nov 06 23:06:34 2023 +0000 |
tree | a07d828fa4608a1788dc9b7aaf75a55c96c33326 | |
parent | 9b59b0652db6852837384bb0eca17963c21a7492 [diff] [blame] |
Adding traces to codec framework Bug: 286081370 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:79c516b7f8d150c3e6e4a11ca9792dbc891e1d55) Merged-In: If65c89fb4ea1460430667f09583f36f38468417b Change-Id: If65c89fb4ea1460430667f09583f36f38468417b
diff --git a/media/codec2/hal/client/output.cpp b/media/codec2/hal/client/output.cpp index 48f9756..f86e048 100644 --- a/media/codec2/hal/client/output.cpp +++ b/media/codec2/hal/client/output.cpp
@@ -16,7 +16,9 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "Codec2-OutputBufferQueue" +#define ATRACE_TAG ATRACE_TAG_VIDEO #include <android-base/logging.h> +#include <utils/Trace.h> #include <android/hardware/graphics/bufferqueue/2.0/IGraphicBufferProducer.h> #include <codec2/hidl/output.h> @@ -404,6 +406,7 @@ uint32_t generation; uint64_t bqId; int32_t bqSlot; + ScopedTrace trace(ATRACE_TAG,"Codec2-OutputBufferQueue::outputBuffer"); bool display = V1_0::utils::displayBufferQueueBlock(block); if (!getBufferQueueAssignment(block, &generation, &bqId, &bqSlot) || bqId == 0) {