mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a0a2958cda
commit
9d1400a1ef
@@ -64,6 +64,10 @@ function renderApplication<Props: Object>(
|
||||
}
|
||||
|
||||
performanceLogger.startTimespan('renderApplication_React_render');
|
||||
performanceLogger.setExtra(
|
||||
'usedReactConcurrentRoot',
|
||||
useConcurrentRoot ? '1' : '0',
|
||||
);
|
||||
performanceLogger.setExtra('usedReactFabric', fabric ? '1' : '0');
|
||||
if (fabric) {
|
||||
require('../Renderer/shims/ReactFabric').render(
|
||||
|
||||
Reference in New Issue
Block a user