Add more systrace sections to FabricJSIModuleProvider

Summary:
Adding more Systrace sections to get perf information during critical paths.

Changelog: [Internal]

Reviewed By: ejanzer

Differential Revision: D24960195

fbshipit-source-id: 099e9cfac8ac87287e48e9915e6b28fe7a448783
This commit is contained in:
Joshua Gross 2020-11-13 21:51:04 -08:00 коммит произвёл Facebook GitHub Bot
Родитель c609952ddb
Коммит 47000756fe
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -56,6 +56,7 @@ public class FabricJSIModuleProvider implements JSIModuleProvider<UIManager> {
@Override
public UIManager get() {
Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "FabricJSIModuleProvider.get");
final EventBeatManager eventBeatManager = new EventBeatManager(mReactApplicationContext);
final FabricUIManager uiManager = createUIManager(eventBeatManager);
Systrace.beginSection(
@ -76,7 +77,10 @@ public class FabricJSIModuleProvider implements JSIModuleProvider<UIManager> {
jsMessageQueueThread,
mComponentFactory,
mConfig);
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
return uiManager;
}