measure time spent before RUN_JS_BUNDLE

Reviewed By: alexeylang

Differential Revision: D4989216

fbshipit-source-id: 4996c934931636eadbef97d5c7f51a5907e773fb
This commit is contained in:
Aaron Chiu 2017-05-03 06:56:57 -07:00 committed by Facebook Github Bot
parent edf1774945
commit 989eb985b3
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -63,4 +63,5 @@ public enum ReactMarkerConstants {
loadApplicationScript_endStringConvert,
PRE_SETUP_REACT_CONTEXT_START,
PRE_SETUP_REACT_CONTEXT_END,
PRE_RUN_JS_BUNDLE_START,
}