FirebasePerformance class

The Firebase Performance API.

You can get an instance by calling FirebasePerformance.instance.

Inheritance
  • Object
  • PlatformInterface
  • FirebasePluginPlatform
  • FirebasePerformance

Constructors

FirebasePerformance.instanceFor({required FirebaseApp app})
Returns an instance using a specified FirebaseApp.
factory

Properties

app ↔ FirebaseApp
The FirebaseApp for this current FirebaseMessaging instance.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pluginConstants Map
Returns any plugin constants this plugin app instance has initialized.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isPerformanceCollectionEnabled() Future<bool>
Determines whether custom performance monitoring is enabled or disabled.
newHttpMetric(String url, HttpMethod httpMethod) HttpMetric
Creates a HttpMetric object for collecting network performance data for one request/response. Only works for native apps. A stub class is created for web which does nothing
newTrace(String name) Trace
Creates a Trace object with given name. Traces can be used to measure the time taken for a sequence of steps. Traces also include “Counters”. Counters are used to track information which is cumulative in nature (e.g., Bytes downloaded).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPerformanceCollectionEnabled(bool enabled) Future<void>
Enables or disables custom performance monitoring setup.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance FirebasePerformance
Returns an instance using the default FirebaseApp.
no setter