From dd627479c2e67b8f5338345f2e3c7a5725ada1ba Mon Sep 17 00:00:00 2001 From: Emily Janzer Date: Fri, 7 Sep 2018 17:36:50 -0700 Subject: [PATCH] Add marker point for initializing Hermes Summary: Adding a QPL point for initializing Hermes to both (MP) HOME_TTI and (RN) CORE. Reviewed By: yungsters Differential Revision: D9725795 fbshipit-source-id: 673f54950a2d9ebfa496a000a0d47aabf290bfc8 --- .../src/main/java/com/facebook/react/ReactInstanceManager.java | 2 ++ .../java/com/facebook/react/bridge/ReactMarkerConstants.java | 1 + 2 files changed, 3 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java index 53fac5f1e..af3f0790f 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -17,6 +17,7 @@ import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_CATALYST_INS import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_REACT_CONTEXT_START; import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_VIEW_MANAGERS_END; import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_VIEW_MANAGERS_START; +import static com.facebook.react.bridge.ReactMarkerConstants.HERMES_INIT; import static com.facebook.react.bridge.ReactMarkerConstants.PRE_SETUP_REACT_CONTEXT_END; import static com.facebook.react.bridge.ReactMarkerConstants.PRE_SETUP_REACT_CONTEXT_START; import static com.facebook.react.bridge.ReactMarkerConstants.PROCESS_PACKAGES_END; @@ -923,6 +924,7 @@ public class ReactInstanceManager { try { Process.setThreadPriority(Process.THREAD_PRIORITY_DISPLAY); + ReactMarker.logMarker(HERMES_INIT); final ReactApplicationContext reactApplicationContext = createReactContext( initParams.getJsExecutorFactory().create(), diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java index c59c39ff0..828d7b4c8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java @@ -90,4 +90,5 @@ public enum ReactMarkerConstants { CREATE_MC_MODULE_GET_METADATA_END, REGISTER_JS_SEGMENT_START, REGISTER_JS_SEGMENT_STOP, + HERMES_INIT, }