withTraceSuspended

expect inline suspend fun <T> withTraceSuspended(function: KFunction<*>, args: Array<Any?>, traceAnnotation: Trace, crossinline block: suspend () -> T): T(source)

Executes the given suspend block within a tracing span.

This function is generated and invoked by the Tracy compiler plugin when transforming suspend functions annotated with Trace.

This function is not intended to be called directly.