trace

inline fun <T> trace(sectionName: String, block: () -> T): T(source)

Deprecated

Use androidx.tracing.Trace instead

Replace with

import androidx.tracing.trace
trace(sectionName, block)

Wrap the specified block in calls to Trace.beginSection (with the supplied sectionName) and Trace.endSection.