mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
Add more systrace to RN startup
Summary: Added systrace to the following sections 1. When Marketplace Home Fragment is created 2. On initialization of Catalyst Instance Reviewed By: achen1 Differential Revision: D9665376 fbshipit-source-id: e48e9f50dad42c71fb2151538f65bc54939adc1e
This commit is contained in:
committed by
Facebook Github Bot
parent
d838b6c550
commit
b1d205a28f
@@ -1128,9 +1128,13 @@ public class ReactInstanceManager {
|
||||
catalystInstance.setGlobalVariable("__RCTProfileIsProfiling", "true");
|
||||
}
|
||||
ReactMarker.logMarker(ReactMarkerConstants.PRE_RUN_JS_BUNDLE_START);
|
||||
Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "runJSBundle");
|
||||
catalystInstance.runJSBundle();
|
||||
Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
|
||||
reactContext.initializeWithInstance(catalystInstance);
|
||||
|
||||
|
||||
return reactContext;
|
||||
}
|
||||
|
||||
@@ -1190,6 +1194,6 @@ public class ReactInstanceManager {
|
||||
if (reactPackage instanceof ReactPackageLogger) {
|
||||
((ReactPackageLogger) reactPackage).endProcessPackage();
|
||||
}
|
||||
SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE).flush();
|
||||
SystraceMessage.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user