{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AndroidTraceKt

public final class AndroidTraceKt


Summary

Public methods

static final @NonNull T
<T extends Object> trace(
    @NonNull String sectionName,
    @NonNull Function0<@NonNull T> block
)

Wrap the specified block in calls to Trace.beginSection (with the supplied sectionName) and Trace.endSection.

Public methods

trace

public static final @NonNull T <T extends Object> trace(
    @NonNull String sectionName,
    @NonNull Function0<@NonNull T> block
)

Wrap the specified block in calls to Trace.beginSection (with the supplied sectionName) and Trace.endSection.