mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
Add more systrance on startup
Summary: as title Reviewed By: achen1 Differential Revision: D9729852 fbshipit-source-id: 15bb2ab4cff7f7fb1730eb354b36d7caf5cbac36
This commit is contained in:
committed by
Facebook Github Bot
parent
2434b965f2
commit
1830f9baae
@@ -222,6 +222,8 @@ public class ReactInstanceManager {
|
|||||||
mJSMainModulePath = jsMainModulePath;
|
mJSMainModulePath = jsMainModulePath;
|
||||||
mPackages = new ArrayList<>();
|
mPackages = new ArrayList<>();
|
||||||
mUseDeveloperSupport = useDeveloperSupport;
|
mUseDeveloperSupport = useDeveloperSupport;
|
||||||
|
Systrace.beginSection(
|
||||||
|
Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "ReactInstanceManager.initDevSupportManager");
|
||||||
mDevSupportManager =
|
mDevSupportManager =
|
||||||
DevSupportManagerFactory.create(
|
DevSupportManagerFactory.create(
|
||||||
applicationContext,
|
applicationContext,
|
||||||
@@ -232,6 +234,7 @@ public class ReactInstanceManager {
|
|||||||
devBundleDownloadListener,
|
devBundleDownloadListener,
|
||||||
minNumShakes,
|
minNumShakes,
|
||||||
customPackagerCommandHandlers);
|
customPackagerCommandHandlers);
|
||||||
|
Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||||
mBridgeIdleDebugListener = bridgeIdleDebugListener;
|
mBridgeIdleDebugListener = bridgeIdleDebugListener;
|
||||||
mLifecycleState = initialLifecycleState;
|
mLifecycleState = initialLifecycleState;
|
||||||
mMemoryPressureRouter = new MemoryPressureRouter(applicationContext);
|
mMemoryPressureRouter = new MemoryPressureRouter(applicationContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user