Perfetto api Performance improvements
1. Avoid lambda allocation during Perfetto tracing Some methods accepted a supplier using syntactic sugar of the form: Class::new. This sugar was allocating a lambda in the background. Now, we eagerly create these suppliers and re-use them. 2. Remove var args from apis to avoid array allocations Test: atest PerfettoTraceTest Bug: 303199244 Flag: android.os.perfetto_sdk_tracing_v2 Change-Id: If39cbaf4b74f50a0e6337cbff7fd6062a9bab672
Loading
Please register or sign in to comment