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

Commit 02d50bee authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue
Browse files

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
parent ecb8b404
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