Skip to content

Commit 4700075

Browse files
JoshuaGrossfacebook-github-bot
authored andcommitted
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
1 parent c609952 commit 4700075

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public FabricJSIModuleProvider(
5656

5757
@Override
5858
public UIManager get() {
59+
Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "FabricJSIModuleProvider.get");
5960
final EventBeatManager eventBeatManager = new EventBeatManager(mReactApplicationContext);
6061
final FabricUIManager uiManager = createUIManager(eventBeatManager);
6162
Systrace.beginSection(
@@ -76,7 +77,10 @@ public UIManager get() {
7677
jsMessageQueueThread,
7778
mComponentFactory,
7879
mConfig);
80+
81+
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
7982
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
83+
8084
return uiManager;
8185
}
8286

0 commit comments

Comments
 (0)