From 9d1400a1efeb8ddc14a41417b8bff11a65c7fabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Mon, 28 Feb 2022 19:30:41 -0800 Subject: [PATCH] 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 --- Libraries/ReactNative/renderApplication.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/ReactNative/renderApplication.js b/Libraries/ReactNative/renderApplication.js index 5663a47a7ad..d3f2d87971d 100644 --- a/Libraries/ReactNative/renderApplication.js +++ b/Libraries/ReactNative/renderApplication.js @@ -64,6 +64,10 @@ function renderApplication( } performanceLogger.startTimespan('renderApplication_React_render'); + performanceLogger.setExtra( + 'usedReactConcurrentRoot', + useConcurrentRoot ? '1' : '0', + ); performanceLogger.setExtra('usedReactFabric', fabric ? '1' : '0'); if (fabric) { require('../Renderer/shims/ReactFabric').render(