mirror of
https://github.com/status-im/react-native-firebase.git
synced 2026-09-01 14:41:07 +00:00
[perf][android] Add setPerformanceCollectionEnabled method
This commit is contained in:
@@ -29,6 +29,11 @@ public class RNFirebasePerformance extends ReactContextBaseJavaModule {
|
||||
return TAG;
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void setPerformanceCollectionEnabled(Boolean enabled) {
|
||||
FirebasePerformance.getInstance().setPerformanceCollectionEnabled(enabled);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void start(String identifier) {
|
||||
Trace trace = getOrCreateTrace(identifier);
|
||||
|
||||
Reference in New Issue
Block a user