com.google.firebase.perf.ktx

Top-level functions summary

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

This function is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Extension functions summary

inline Unit

This function is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

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

This function is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Extension properties summary

FirebasePerformance

Accessing this object for Kotlin apps has changed; see the migration guide.

Top-level functions

trace

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

Extension functions

trace

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

trace

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

Extension properties

performance

val Firebase.performanceFirebasePerformance

Accessing this object for Kotlin apps has changed; see the migration guide.

Returns the FirebasePerformance instance of the default FirebaseApp.

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.