androidx.tracing
Classes
Trace |
Writes trace events to the system trace buffer. |
Top-level functions summary
T |
Wrap the specified block in calls to Trace.beginSection (with the supplied label) and Trace.endSection. |
suspend T |
traceAsync(methodName: String, cookie: Int, crossinline block: suspend () -> T) Wrap the specified block in calls to Trace.beginAsyncSection (with the supplied methodName and cookie) and Trace.endAsyncSection. |
Top-level functions
trace
inline fun <T> trace(
label: String,
crossinline block: () -> T
): T
Wrap the specified block in calls to Trace.beginSection (with the supplied label) and Trace.endSection.
Parameters | |
---|---|
label: String | A name of the code section to appear in the trace. |
block: () -> T | A block of code which is being traced. |
traceAsync
inline suspend fun <T> traceAsync(
methodName: String,
cookie: Int,
crossinline block: suspend () -> T
): T
Wrap the specified block in calls to Trace.beginAsyncSection (with the supplied methodName and cookie) and Trace.endAsyncSection.
Parameters | |
---|---|
methodName: String | The method name to appear in the trace. |
cookie: Int | Unique identifier for distinguishing simultaneous events |