trace

inline fun <T> trace(name: String, tracingBlock: () -> T): T

A convenience Kotlin API that can be used instead of manually calling ComponentsSystrace.beginSection and ComponentsSystrace.endSection.

Starts the tracing section, executes the given tracingBlock and ends the tracing section.