IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-21 UTC."],[],[],null,["com.google.firebase.perf\n\nClasses \n\nAnnotations \n\nTop-level functions summary \n\nExtension functions summary \n\nExtension properties summary \n\nTop-level functions \n\ntrace \n\n```\ninline fun \u003cT : Any?\u003e trace(name: String, block: Trace.() -\u003e T): T\n```\n\nCreates a [Trace](/docs/reference/kotlin/com/google/firebase/perf/metrics/Trace) object with given [name](/docs/reference/kotlin/com/google/firebase/perf/package-summary#trace(kotlin.String,kotlin.Function1)) and measures the time it takes to run the [block](/docs/reference/kotlin/com/google/firebase/perf/package-summary#trace(kotlin.String,kotlin.Function1)) wrapped by calls to start and stop.\n\nExtension functions \n\ntrace \n\n```\ninline fun HttpMetric.trace(block: HttpMetric.() -\u003e Unit): Unit\n```\n\nMeasures the time it takes to run the [block](/docs/reference/kotlin/com/google/firebase/perf/package-summary#(com.google.firebase.perf.metrics.HttpMetric).trace(kotlin.Function1)) wrapped by calls to start and stop using [HttpMetric](/docs/reference/kotlin/com/google/firebase/perf/metrics/HttpMetric). \n\ntrace \n\n```\ninline fun \u003cT : Any?\u003e Trace.trace(block: Trace.() -\u003e T): T\n```\n\nMeasures the time it takes to run the [block](/docs/reference/kotlin/com/google/firebase/perf/package-summary#(com.google.firebase.perf.metrics.Trace).trace(kotlin.Function1)) wrapped by calls to start and stop using [Trace](/docs/reference/kotlin/com/google/firebase/perf/metrics/Trace).\n\nExtension properties \n\nperformance \n\n```\nval Firebase.performance: FirebasePerformance\n```\n\nReturns the [FirebasePerformance](/docs/reference/kotlin/com/google/firebase/perf/FirebasePerformance) instance of the default [FirebaseApp](/docs/reference/kotlin/com/google/firebase/FirebaseApp)."]]