summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Zimuzo Ezeozue <zezeozue@google.com> 2024-09-20 00:24:35 +0100
committer Zimuzo Ezeozue <zezeozue@google.com> 2024-12-18 16:53:58 +0000
commit14d1380991a677c208eb963d7e63017e6299223f (patch)
tree9efdd09f2962e58b15743b3e1d762f6879daa363 /libs/gui/BufferQueueThreadState.cpp
parent921e6125655e756a3e6084c798f27c48a5ef1527 (diff)
Support a PerfettoTrace Java API
Added a layer on top of the Perfetto C SDK that allows creating equivalent 'PerfettoTeHl' structs on the heap. This makes it possible for Java objects to control the lifetime of these objects through JNI. Each PerfettoTeHl struct has an equivalent C++ class allocated on the heap which is in turn managed by an equivalent Java class managed by the Java heap. This design allows us to allocate objects once and re-use them to serialize the trace event data from Java into the shmem. The Java layer is responsible for caching the Perfetto Java objects to avoid GC churn. Test: atest PerfettoTraceTest Change-Id: Ibb08e8b6cab7d86ac2c1d57c621c9074a4cb4077 Bug: 303199244 Flag: android.os.perfetto_sdk_tracing_v2
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions