Loading
tracinglib: query aflag instead of sysprop
Query android.os.perfetto_sdk_tracing_v2 instead of debug.coroutine_tracing.use_perfetto_sdk sysprop to determine if android.os.PerfettoTrace should be used. Also, - Replace calls to Flags.coroutineTracing() with fully-qualified name to make it easier to see the aflag namespace at the call site. - Fix upper bounds check in restoreDataForSuspension(). - Restrict visibility of types in TraceData. - Use nullable types instead of lateinit to simplify conditionals. Test: atest CoroutineTracingPerfTests Test: atest tracinglib-robo-test Flag: android.os.perfetto_sdk_tracing_v2 Flag: com.android.systemui.coroutine_tracing Bug: 350657545 Change-Id: Ifbdf8beda00363469acd91f8dc777bc6612e967f