Skip to content

Commit

Permalink
Add more systrace sections to FabricJSIModuleProvider
Browse files Browse the repository at this point in the history
Summary:
Adding more Systrace sections to get perf information during critical paths.

Changelog: [Internal]

Reviewed By: ejanzer

Differential Revision: D24960195

fbshipit-source-id: 099e9cfac8ac87287e48e9915e6b28fe7a448783
  • Loading branch information
JoshuaGross authored and facebook-github-bot committed Nov 14, 2020
1 parent c609952 commit 4700075
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public FabricJSIModuleProvider(

@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(
Expand All @@ -76,7 +77,10 @@ public UIManager get() {
jsMessageQueueThread,
mComponentFactory,
mConfig);

Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);

return uiManager;
}

Expand Down

0 comments on commit 4700075

Please sign in to comment.