Skip to content

Commit 9d1400a

Browse files
rubennortefacebook-github-bot
authored andcommitted
Add annotation to report the use of concurrent root in TTRC
Summary: Annotate use of `ConcurrentRoot` in React in performance logger. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D34453147 fbshipit-source-id: 813a58ae964e5ae4ddf806a30597ee39d315e800
1 parent a0a2958 commit 9d1400a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/ReactNative/renderApplication.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ function renderApplication<Props: Object>(
6464
}
6565

6666
performanceLogger.startTimespan('renderApplication_React_render');
67+
performanceLogger.setExtra(
68+
'usedReactConcurrentRoot',
69+
useConcurrentRoot ? '1' : '0',
70+
);
6771
performanceLogger.setExtra('usedReactFabric', fabric ? '1' : '0');
6872
if (fabric) {
6973
require('../Renderer/shims/ReactFabric').render(

0 commit comments

Comments
 (0)