Skip to content

Commit 0a2215c

Browse files
authored
[Scheduler][www] Put profiling feature behind flag (#16757)
Our infra currently doesn't support loading a separate profiling build of Scheduler. Until that's fixed, the recommendation is to load a single build and gate the profiling feature behind a flag. Alternative to #16659
1 parent 8f03109 commit 0a2215c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/scheduler/src/forks/SchedulerFeatureFlags.www.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
export const {
1010
enableIsInputPending,
1111
enableSchedulerDebugging,
12+
enableProfiling: enableProfilingFeatureFlag,
1213
} = require('SchedulerFeatureFlags');
1314

14-
export const enableProfiling = __PROFILE__;
15+
export const enableProfiling = __PROFILE__ && enableProfilingFeatureFlag;
1516
export const enableMessageLoopImplementation = true;

0 commit comments

Comments
 (0)