From 40a99c9345c89f50041e444f7de504a1125a58c2 Mon Sep 17 00:00:00 2001 From: Ruslan Shestopalyuk Date: Wed, 15 Nov 2023 21:38:01 -0800 Subject: [PATCH] Add and use MC killswitch for enabling paint time reporting in Event Timing API (#41501) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41501 ## Changelog: [Internal] - Wires a switch for enabling the corresponding feature in Event Timing API. Reviewed By: rubennorte Differential Revision: D51341239 fbshipit-source-id: a93a1fc5bdc132ce2a2d528139091be0e4a3ec11 --- .../ReactCommon/react/renderer/scheduler/Scheduler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp index 1777b73374dd8e..55e286d9434df8 100644 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp +++ b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.cpp @@ -157,6 +157,9 @@ Scheduler::Scheduler( reactNativeConfig_->getBool( "react_fabric:enable_granular_shadow_tree_state_reconciliation"); + CoreFeatures::enableReportEventPaintTime = reactNativeConfig_->getBool( + "rn_responsiveness_performance:enable_paint_time_reporting"); + if (animationDelegate != nullptr) { animationDelegate->setComponentDescriptorRegistry( componentDescriptorRegistry_);