+1
−0
File changed.
Preview size limit exceeded, changes collapsed.
+234
−0
File added.
Preview size limit exceeded, changes collapsed.
File changed and moved.
Preview size limit exceeded, changes collapsed.
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
- Read aconfig flag in tracinglib directly - Move coroutine tracing utils to separate package to making extension functions easier to find. This way, the extensions for kotlinx.courtines.* can be found under com.android.app.tracing.coroutines.*. Similarly, in the future, extensions for flows will be under com.android.app.tracing.coroutines.flow.* - Hide implementation details, change visibility to internal or private on various members. - Replace Lazy<String> with lambda to simplify bytecode - Use sealed class to simplify conditional logic for when coroutine tracing is not enabled or available in the current coroutine context. - Simplify TraceUtils object declaration (it doesn't need to be a companion object) - Use random numbers for trace cookies. Generating a random number should be faster than using atomic integers. Cookie collisions would be extremely rare, and if they do happen, the worst that would happen is a momentarily malformed trace. Flag: ACONFIG com.android.systemui.coroutine_tracing DEVELOPMENT Bug: 289353932 Test: SystemUITests Test: capture trace on phone, async traces work as expected Change-Id: Ie240a125893282bb6d79614bdd1d980aaad82645
File changed.
Preview size limit exceeded, changes collapsed.
File added.
Preview size limit exceeded, changes collapsed.
File changed and moved.
Preview size limit exceeded, changes collapsed.