perf
The Firebase Performance Monitoring service interface.
This module is available for the default app only.
Example
Get the Performance Monitoring service for the default app:
const defaultAppPerf = firebase.perf();
Properties
isPerformanceCollectionEnabled
</>Determines whether performance monitoring is enabled or disabled.
isPerformanceCollectionEnabled: boolean;
Methods
newHttpMetric
</>Creates a HttpMetric instance for collecting network performance data for a single request/response
newHttpMetric(url: string, httpMethod: HttpMethod): HttpMetric;
newScreenTrace
</>Creates a ScreenTrace instance with the given identifier. Throws if hardware acceleration is diabled or if Android is 9.0 or 9.1.
newScreenTrace(identifier: string): ScreenTrace;
setPerformanceCollectionEnabled
</>Enables or disables performance monitoring.
setPerformanceCollectionEnabled(enabled: boolean): Promise<null>;
startScreenTrace
</>Creates a ScreenTrace instance with the given identifier and immediately starts it. Throws if hardware acceleration is diabled or if Android is 9.0 or 9.1.
startScreenTrace(identifier: string): Promise<ScreenTrace>;