@samitouri / QOS-React-2 / commits / 0a2215cc0e

[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

Andrew Clark committed Sep 11, 2019 at 13:28 UTC 0a2215cc0e3067087ff29644f4c50ee1fc69984b
1 file changed +2 -1
packages/scheduler/src/forks/SchedulerFeatureFlags.www.js
+2 -1
@@ -9,7 +9,8 @@
9 export const {
10 enableIsInputPending,
11 enableSchedulerDebugging,
12 + enableProfiling: enableProfilingFeatureFlag,
13 } = require('SchedulerFeatureFlags');
14
14 -export const enableProfiling = __PROFILE__;
15 +export const enableProfiling = __PROFILE__ && enableProfilingFeatureFlag;
16 export const enableMessageLoopImplementation = true;