Skip to content

Commit

Permalink
Add and use MC killswitch for enabling paint time reporting in Event …
Browse files Browse the repository at this point in the history
…Timing API (facebook#41501)

Summary:

## Changelog:
[Internal] -

Wires a switch for enabling the corresponding feature in Event Timing API.

Reviewed By: rubennorte

Differential Revision: D51341239
  • Loading branch information
rshest authored and facebook-github-bot committed Nov 15, 2023
1 parent 88233cf commit 5464c40
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit 5464c40

Please sign in to comment.