From bb69aa2297c86011fd18b6eaf11330290f844334 Mon Sep 17 00:00:00 2001 From: Ruslan Shestopalyuk Date: Wed, 15 Nov 2023 19:18:44 -0800 Subject: [PATCH] Add and use MC killswitch for enabling paint time reporting in Event Timing API (#41501) Summary: ## Changelog: [Internal] - Wires a switch for enabling the corresponding feature in Event Timing API. Reviewed By: rubennorte Differential Revision: D51341239 --- .../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_);