FirebasePerformance

Firebase Performance Monitoring, as the Android SDK's com.google.firebase.perf.FirebasePerformance: the entry point for custom traces and HTTP metrics.

The JS SDK has no custom HTTP metrics (it records network requests itself), so on JS and wasmJs newHttpMetric returns a metric that reports nothing and carries @dev.gitlive.firebase.UnsupportedOnJs, so code compiled for JS gets a warning until it opts in.

Types

Link copied to clipboard
actual object Companion
actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion
Link copied to clipboard
actual annotation class HttpMethod
actual annotation class HttpMethod
expect annotation class HttpMethod

The HTTP method names accepted by newHttpMetric; the Android SDK's @StringDef.

actual annotation class HttpMethod
actual annotation class HttpMethod
actual annotation class HttpMethod

Properties

Link copied to clipboard
val ios: <Error class: unknown class>

The underlying Firebase iOS SDK object.

Link copied to clipboard

Whether performance monitoring is enabled. The setting is persisted and applied on future runs of the app; it does not affect instrumentation configured at build time.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
actual fun newHttpMetric(url: URL, httpMethod: String): HttpMetric
actual fun newHttpMetric(url: String, httpMethod: String): HttpMetric
actual fun newHttpMetric(url: <Error class: unknown class>, httpMethod: String): HttpMetric
actual fun newHttpMetric(url: String, httpMethod: String): HttpMetric
expect fun newHttpMetric(url: <Error class: unknown class>, httpMethod: String): HttpMetric
expect fun newHttpMetric(url: String, httpMethod: String): HttpMetric

Creates an HttpMetric for a request of httpMethod (one of HttpMethod) to url.

actual fun newHttpMetric(url: <Error class: unknown class>, httpMethod: String): HttpMetric
actual fun newHttpMetric(url: String, httpMethod: String): HttpMetric

A metric that keeps its values but reports nothing: the JS SDK has no custom HTTP metrics.

actual fun newHttpMetric(url: URL, httpMethod: String): HttpMetric
actual fun newHttpMetric(url: String, httpMethod: String): HttpMetric
actual fun newHttpMetric(url: <Error class: unknown class>, httpMethod: String): HttpMetric
actual fun newHttpMetric(url: String, httpMethod: String): HttpMetric

A metric that keeps its values but reports nothing: the JS SDK has no custom HTTP metrics.

Link copied to clipboard
actual fun newTrace(traceName: String): Trace
actual fun newTrace(traceName: String): Trace
expect fun newTrace(traceName: String): Trace

Creates a Trace with the given name, which must have no leading or trailing whitespace, no leading underscore and at most MAX_TRACE_NAME_LENGTH characters.

actual fun newTrace(traceName: String): Trace
actual fun newTrace(traceName: String): Trace
actual fun newTrace(traceName: String): Trace
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String