mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 19:15:05 +00:00
measure time spent before RUN_JS_BUNDLE
Reviewed By: alexeylang Differential Revision: D4989216 fbshipit-source-id: 4996c934931636eadbef97d5c7f51a5907e773fb
This commit is contained in:
parent
edf1774945
commit
989eb985b3
@ -39,6 +39,7 @@ import com.facebook.react.bridge.NotThreadSafeBridgeIdleDebugListener;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.bridge.ReactMarker;
|
||||
import com.facebook.react.bridge.ReactMarkerConstants;
|
||||
import com.facebook.react.bridge.WritableMap;
|
||||
import com.facebook.react.bridge.WritableNativeMap;
|
||||
import com.facebook.react.bridge.queue.ReactQueueConfigurationSpec;
|
||||
@ -962,6 +963,7 @@ public class ReactInstanceManager {
|
||||
}
|
||||
|
||||
reactContext.initializeWithInstance(catalystInstance);
|
||||
ReactMarker.logMarker(ReactMarkerConstants.PRE_RUN_JS_BUNDLE_START);
|
||||
catalystInstance.runJSBundle();
|
||||
|
||||
return reactContext;
|
||||
|
@ -63,4 +63,5 @@ public enum ReactMarkerConstants {
|
||||
loadApplicationScript_endStringConvert,
|
||||
PRE_SETUP_REACT_CONTEXT_START,
|
||||
PRE_SETUP_REACT_CONTEXT_END,
|
||||
PRE_RUN_JS_BUNDLE_START,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user