From 13849b7a85f9aa0d13788359ae807890c57c2b35 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Thu, 20 Jun 2024 17:26:26 -0400 Subject: [PATCH] www: remove dynamic scheduler feature flag: enableProfiling I removed the wrong feature flag in #29995, this is the correct one to match D58682445. --- .../scheduler/src/forks/SchedulerFeatureFlags.www-dynamic.js | 2 -- packages/scheduler/src/forks/SchedulerFeatureFlags.www.js | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/scheduler/src/forks/SchedulerFeatureFlags.www-dynamic.js b/packages/scheduler/src/forks/SchedulerFeatureFlags.www-dynamic.js index 25d88aa4b903d..8bbe8385b7f63 100644 --- a/packages/scheduler/src/forks/SchedulerFeatureFlags.www-dynamic.js +++ b/packages/scheduler/src/forks/SchedulerFeatureFlags.www-dynamic.js @@ -11,8 +11,6 @@ // Use __VARIANT__ to simulate a GK. The tests will be run twice: once // with the __VARIANT__ set to `true`, and once set to `false`. -export const enableProfiling = __VARIANT__; - export const userBlockingPriorityTimeout = 250; export const normalPriorityTimeout = 5000; export const lowPriorityTimeout = 10000; diff --git a/packages/scheduler/src/forks/SchedulerFeatureFlags.www.js b/packages/scheduler/src/forks/SchedulerFeatureFlags.www.js index 93d1b25b99c52..5c42786c94d42 100644 --- a/packages/scheduler/src/forks/SchedulerFeatureFlags.www.js +++ b/packages/scheduler/src/forks/SchedulerFeatureFlags.www.js @@ -10,8 +10,6 @@ // $FlowFixMe[cannot-resolve-module] const dynamicFeatureFlags = require('SchedulerFeatureFlags'); -const {enableProfiling: enableProfilingFeatureFlag} = dynamicFeatureFlags; - export const { userBlockingPriorityTimeout, normalPriorityTimeout, @@ -20,5 +18,4 @@ export const { export const frameYieldMs = 10; export const enableSchedulerDebugging = true; -export const enableProfiling: boolean = - __PROFILE__ && enableProfilingFeatureFlag; +export const enableProfiling = __DEV__;