Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 029c7a04 authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue
Browse files

Added a no-op PerfettoTrackEvent extra builder

This improves performance when tracing is disabled
because all the no-op calls can use one statically
initialized dummy builder object.

Newly added perf test to measure unregistered
category peformance shows a 2x improvement when
tracing a proto. 37ns to 17ns on oriole.

Test: atest PerfettoTraceTest
Test: atest TracePerfTest
Bug: 303199244
Bug: 400826148
Flag: android.os.perfetto_sdk_tracing_v2

Change-Id: If8f663d72b8283265a5f1b7fc75f5af2ecd2e37d
parent 04b421bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment