Add more systrance on startup

Summary: as title

Reviewed By: achen1

Differential Revision: D9729852

fbshipit-source-id: 15bb2ab4cff7f7fb1730eb354b36d7caf5cbac36
This commit is contained in:
Jiaqi Wu 2018-09-09 14:14:16 -07:00 committed by Facebook Github Bot
parent 2434b965f2
commit 1830f9baae
1 changed files with 3 additions and 0 deletions

View File

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