diff --git a/packages/shared/forks/ReactFeatureFlags.www-dynamic.js b/packages/shared/forks/ReactFeatureFlags.www-dynamic.js index c698b11b86a25..4ec863c7bbb84 100644 --- a/packages/shared/forks/ReactFeatureFlags.www-dynamic.js +++ b/packages/shared/forks/ReactFeatureFlags.www-dynamic.js @@ -40,6 +40,8 @@ export const disableLegacyMode = __VARIANT__; // NOTE: This feature will only work in DEV mode; all callsites are wrapped with __DEV__. export const enableDebugTracing = __EXPERIMENTAL__; +export const enableSchedulingProfiler = __VARIANT__; + export const enableInfiniteRenderLoopDetection = __VARIANT__; // TODO: These flags are hard-coded to the default values used in open source. diff --git a/packages/shared/forks/ReactFeatureFlags.www.js b/packages/shared/forks/ReactFeatureFlags.www.js index 9dd1299f37661..9404b877f532b 100644 --- a/packages/shared/forks/ReactFeatureFlags.www.js +++ b/packages/shared/forks/ReactFeatureFlags.www.js @@ -59,7 +59,9 @@ export const enableAsyncActions = true; export const disableInputAttributeSyncing = false; export const enableLegacyFBSupport = true; -export const enableSchedulingProfiler = __DEV__; +// Logs additional User Timing API marks for use with an experimental profiling tool. +export const enableSchedulingProfiler: boolean = + __PROFILE__ && dynamicFeatureFlags.enableSchedulingProfiler; export const disableLegacyContext = __EXPERIMENTAL__; export const enableGetInspectorDataForInstanceInProduction = false;