mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 20:10:05 +08:00
[perf] Add setPerformanceCollectionEnabled docs
This commit is contained in:
@@ -11,6 +11,14 @@ You can easily trace your own events with RNFirebase:
|
||||
|
||||
## API
|
||||
|
||||
#### setPerformanceCollectionEnabled(enabled: `boolean`)
|
||||
|
||||
Globally enables or disables performance monitoring capture across the app.
|
||||
|
||||
```js
|
||||
firebase.perf().setPerformanceCollectionEnabled(false); // Disable
|
||||
```
|
||||
|
||||
#### newTrace(id: `string`): `Trace`
|
||||
|
||||
Returns a new instance of Trace (see API below). The id is the unique name of something you'd like to run performance
|
||||
|
||||
Reference in New Issue
Block a user