com.google.firebase.perf

Classes

FirebasePerformance

The Firebase Performance Monitoring API.

Annotations

FirebasePerformance.HttpMethod

Valid HttpMethods for manual network APIs

Top-level functions summary

inline T
<T : Any?>trace(name: String, block: Trace.()-> T)

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

Extension functions summary

inlineUnit

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

inline T
<T : Any?>Trace.trace(block: Trace.()-> T)

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

Extension properties summary

Top-level functions

trace

inline fun <T : Any?>trace(name: String, block: Trace.()-> T): T

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

Extension functions

trace

inline fun HttpMetric.trace(block: HttpMetric.()->Unit): Unit

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

trace

inline fun <T : Any?>Trace.trace(block: Trace.()-> T): T

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

Extension properties

performance

val Firebase.performanceFirebasePerformance

Returns theFirebasePerformance instance of the defaultFirebaseApp.

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.