17
17
18
18
import com .facebook .infer .annotation .Assertions ;
19
19
import com .facebook .react .bridge .JavaScriptExecutorFactory ;
20
+ import com .facebook .react .bridge .ReactMarker ;
21
+ import com .facebook .react .bridge .ReactMarkerConstants ;
20
22
import com .facebook .react .common .LifecycleState ;
21
23
import com .facebook .react .devsupport .RedBoxHandler ;
22
24
import com .facebook .react .uimanager .UIImplementationProvider ;
@@ -39,7 +41,9 @@ protected ReactNativeHost(Application application) {
39
41
*/
40
42
public ReactInstanceManager getReactInstanceManager () {
41
43
if (mReactInstanceManager == null ) {
44
+ ReactMarker .logMarker (ReactMarkerConstants .GET_REACT_INSTANCE_MANAGER_START );
42
45
mReactInstanceManager = createReactInstanceManager ();
46
+ ReactMarker .logMarker (ReactMarkerConstants .GET_REACT_INSTANCE_MANAGER_END );
43
47
}
44
48
return mReactInstanceManager ;
45
49
}
@@ -64,6 +68,7 @@ public void clear() {
64
68
}
65
69
66
70
protected ReactInstanceManager createReactInstanceManager () {
71
+ ReactMarker .logMarker (ReactMarkerConstants .BUILD_REACT_INSTANCE_MANAGER_START );
67
72
ReactInstanceManagerBuilder builder = ReactInstanceManager .builder ()
68
73
.setApplication (mApplication )
69
74
.setJSMainModulePath (getJSMainModuleName ())
@@ -83,7 +88,9 @@ protected ReactInstanceManager createReactInstanceManager() {
83
88
} else {
84
89
builder .setBundleAssetName (Assertions .assertNotNull (getBundleAssetName ()));
85
90
}
86
- return builder .build ();
91
+ ReactInstanceManager reactInstanceManager = builder .build ();
92
+ ReactMarker .logMarker (ReactMarkerConstants .BUILD_REACT_INSTANCE_MANAGER_END );
93
+ return reactInstanceManager ;
87
94
}
88
95
89
96
/**
0 commit comments