react-native-firebase / perf/lib/modular
perf/lib/modular
PerformanceSettings
PerformanceSettings =
object
Defined in: perf/lib/modular/index.d.ts:35
dataCollectionEnabled
dataCollectionEnabled:
boolean
Defined in: perf/lib/modular/index.d.ts:36
getPerformance()
getPerformance(
app?):Module
Defined in: perf/lib/modular/index.d.ts:33
Returns a Performance instance for the given app.
httpMetric()
httpMetric(
perf,identifier,httpMethod):HttpMetric
Defined in: perf/lib/modular/index.d.ts:65
Returns a HttpMetric instance.
initializePerformance()
initializePerformance(
app,settings?):Promise<Module>
Defined in: perf/lib/modular/index.d.ts:45
Returns a Performance instance for the given app.
settings?
Optional PerformanceSettings. Set "dataCollectionEnabled" which will enable/disable Performance collection.
newScreenTrace()
newScreenTrace(
perf,identifier):ScreenTrace
Defined in: perf/lib/modular/index.d.ts:79
Creates a ScreenTrace instance with the given identifier. Throws if hardware acceleration is disabled or if Android is 9.0 or 9.1.
identifier
string
Name of the trace, no leading or trailing whitespace allowed, no leading underscore '_' character allowed, max length is 100.
startScreenTrace()
startScreenTrace(
perf,identifier):Promise<ScreenTrace>
Defined in: perf/lib/modular/index.d.ts:89
Creates a ScreenTrace instance with the given identifier and immediately starts it. Throws if hardware acceleration is disabled or if Android is 9.0 or 9.1.
trace()
trace(
perf,identifier):Trace
Defined in: perf/lib/modular/index.d.ts:56
Returns a Trace instance.
