PerformanceKt

public final class PerformanceKt


Summary

Public fields

final @NonNull FirebasePerformance

Returns the FirebasePerformance instance of the default FirebaseApp.

Public methods

static final void
PerformanceKt.trace(
    @NonNull HttpMetric receiver,
    @ExtensionFunctionType @NonNull Function1<@NonNull HttpMetricUnit> block
)

Measures the time it takes to run the block wrapped by calls to start and stop using HttpMetric.

static final @NonNull T
<T extends Object> PerformanceKt.trace(
    @NonNull Trace receiver,
    @ExtensionFunctionType @NonNull Function1<@NonNull Trace, @NonNull T> block
)

Measures the time it takes to run the block wrapped by calls to start and stop using Trace.

static final @NonNull T
<T extends Object> trace(
    @NonNull String name,
    @ExtensionFunctionType @NonNull Function1<@NonNull Trace, @NonNull T> block
)

Creates a Trace object with given name and measures the time it takes to run the block wrapped by calls to start and stop.

Public fields

performance

public final @NonNull FirebasePerformance performance

Returns the FirebasePerformance instance of the default FirebaseApp.

Public methods

PerformanceKt.trace

public static final void PerformanceKt.trace(
    @NonNull HttpMetric receiver,
    @ExtensionFunctionType @NonNull Function1<@NonNull HttpMetricUnit> block
)

Measures the time it takes to run the block wrapped by calls to start and stop using HttpMetric.

PerformanceKt.trace

public static final @NonNull T <T extends Object> PerformanceKt.trace(
    @NonNull Trace receiver,
    @ExtensionFunctionType @NonNull Function1<@NonNull Trace, @NonNull T> block
)

Measures the time it takes to run the block wrapped by calls to start and stop using Trace.

trace

public static final @NonNull T <T extends Object> trace(
    @NonNull String name,
    @ExtensionFunctionType @NonNull Function1<@NonNull Trace, @NonNull T> block
)

Creates a Trace object with given name and measures the time it takes to run the block wrapped by calls to start and stop.