Revert "www: remove dynamic feature flag enableSchedulingProfiler" (#29995)
Reverts facebook/react#29994
Jan Kassens committed
Jun 20, 2024 at 17:17 UTC
6ab67c35f15bd0ebf93af8d48d4d0545e9bb9551
2 files changed
+5
-1
packages/shared/forks/ReactFeatureFlags.www-dynamic.js
+2
@@ -40,6 +40,8 @@ export const disableLegacyMode = __VARIANT__;
40
// NOTE: This feature will only work in DEV mode; all callsites are wrapped with __DEV__.
41
export const enableDebugTracing = __EXPERIMENTAL__;
42
43
+export const enableSchedulingProfiler = __VARIANT__;
44
+
45
export const enableInfiniteRenderLoopDetection = __VARIANT__;
46
47
// TODO: These flags are hard-coded to the default values used in open source.
packages/shared/forks/ReactFeatureFlags.www.js
+3
-1
@@ -59,7 +59,9 @@ export const enableAsyncActions = true;
59
export const disableInputAttributeSyncing = false;
60
export const enableLegacyFBSupport = true;
61
62
-export const enableSchedulingProfiler = __DEV__;
62
+// Logs additional User Timing API marks for use with an experimental profiling tool.
63
+export const enableSchedulingProfiler: boolean =
64
+ __PROFILE__ && dynamicFeatureFlags.enableSchedulingProfiler;
65
66
export const disableLegacyContext = __EXPERIMENTAL__;
67
export const enableGetInspectorDataForInstanceInProduction = false;