[perf] Add setPerformanceCollectionEnabled docs

This commit is contained in:
Elliot Hesp 2017-05-25 08:43:42 +01:00
parent 9ebda147f8
commit da889b32fd
1 changed files with 8 additions and 0 deletions

View File

@ -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