From 1830f9baae5899f1631f9aa49b91bc5bfbee6dfc Mon Sep 17 00:00:00 2001 From: Jiaqi Wu Date: Sun, 9 Sep 2018 14:14:16 -0700 Subject: [PATCH] Add more systrance on startup Summary: as title Reviewed By: achen1 Differential Revision: D9729852 fbshipit-source-id: 15bb2ab4cff7f7fb1730eb354b36d7caf5cbac36 --- .../src/main/java/com/facebook/react/ReactInstanceManager.java | 3 +++ 1 file 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 e8871dac4..52bccbea1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java @@ -222,6 +222,8 @@ public class ReactInstanceManager { mJSMainModulePath = jsMainModulePath; mPackages = new ArrayList<>(); mUseDeveloperSupport = useDeveloperSupport; + Systrace.beginSection( + Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "ReactInstanceManager.initDevSupportManager"); mDevSupportManager = DevSupportManagerFactory.create( applicationContext, @@ -232,6 +234,7 @@ public class ReactInstanceManager { devBundleDownloadListener, minNumShakes, customPackagerCommandHandlers); + Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE); mBridgeIdleDebugListener = bridgeIdleDebugListener; mLifecycleState = initialLifecycleState; mMemoryPressureRouter = new MemoryPressureRouter(applicationContext);