traceSync

inline fun <T> traceSync(sectionName: String, section: () -> T): T


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.