traceSync

@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX])
inline fun <T> traceSync(sectionName: String, section: () -> T): T


@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX])
inline fun <T> traceSync(sectionName: () -> String, section: () -> T): T

Wraps section in a platform trace and returns its result.

sectionName is a lambda so any string assembly (concatenation, cookie minting) only runs when tracing is enabled. When disabled, the wrapper collapses to a direct call.