Skip to content

Commit 6ab67c3

Browse files
authored
Revert "www: remove dynamic feature flag enableSchedulingProfiler" (#29995)
Reverts #29994
1 parent babe5a2 commit 6ab67c3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/shared/forks/ReactFeatureFlags.www-dynamic.js

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export const disableLegacyMode = __VARIANT__;
4040
// NOTE: This feature will only work in DEV mode; all callsites are wrapped with __DEV__.
4141
export const enableDebugTracing = __EXPERIMENTAL__;
4242

43+
export const enableSchedulingProfiler = __VARIANT__;
44+
4345
export const enableInfiniteRenderLoopDetection = __VARIANT__;
4446

4547
// TODO: These flags are hard-coded to the default values used in open source.

packages/shared/forks/ReactFeatureFlags.www.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export const enableAsyncActions = true;
5959
export const disableInputAttributeSyncing = false;
6060
export const enableLegacyFBSupport = true;
6161

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;
6365

6466
export const disableLegacyContext = __EXPERIMENTAL__;
6567
export const enableGetInspectorDataForInstanceInProduction = false;

0 commit comments

Comments
 (0)