File changed.
Preview size limit exceeded, changes collapsed.
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
- Reduce number of thread-local writes by wrapping all thread-local state into one object - Fix bug where UNDISPATCHED coroutines could have malformed trace sections (closing too many sections when they were resumed) - Use a ThreadLocal IntArray and ByteArray for tracking both the coroutine trace ID, and the number of open trace sections due to the current coroutine in a thread-safe way - Add experimental Perfetto SDK calls behind debug sysprop for tracing continuations as flow events (continue using android.os.Trace APIs for testing) - Move debug sysprops to object declaration since they are initialized in a thread-safe way on first access - Refactor how countContinuations is enabled or disabled - Remove Robolectric main looper calls, remove references to Dispatchers.Main Test: atest CoroutineTracingPerfTests Flag: com.android.systemui.coroutine_tracing Bug: 350657545 Change-Id: I83cdff92845b32cba06cbde6dd78149e4c47c742
File changed.
Preview size limit exceeded, changes collapsed.