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
Loading
Please register or sign in to comment