PerformanceKt

public final classPerformanceKt


Summary

Public fields

final @NonNullFirebasePerformance

Returns theFirebasePerformance instance of the defaultFirebaseApp.

Public methods

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

Measures the time it takes to run theblock wrapped by calls to start and stop usingHttpMetric.

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

Measures the time it takes to run theblock wrapped by calls to start and stop usingTrace.

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

Creates aTrace object with givenname and measures the time it takes to run theblock wrapped by calls to start and stop.

Public fields

performance

public final @NonNullFirebasePerformance performance

Returns theFirebasePerformance instance of the defaultFirebaseApp.

Public methods

PerformanceKt.trace

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

Measures the time it takes to run theblock wrapped by calls to start and stop usingHttpMetric.

PerformanceKt.trace

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

Measures the time it takes to run theblock wrapped by calls to start and stop usingTrace.

trace

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

Creates aTrace object with givenname and measures the time it takes to run theblock wrapped by calls to start and stop.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.