Skip to content

Commit 0951c38

Browse files
author
Brian Vaughn
committed
Make enableSchedulingProfiler flag dynamic (for PROFILING builds only)
1 parent 0898660 commit 0951c38

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export const decoupleUpdatePriorityFromScheduler = __VARIANT__;
2525
// NOTE: This feature will only work in DEV mode; all callsights are wrapped with __DEV__.
2626
export const enableDebugTracing = __EXPERIMENTAL__;
2727

28+
export const enableSchedulingProfiler = __VARIANT__;
29+
2830
// This only has an effect in the new reconciler. But also, the new reconciler
2931
// is only enabled when __VARIANT__ is true. So this is set to the opposite of
3032
// __VARIANT__ so that it's `false` when running against the new reconciler.

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export const {
3535

3636
export const enableProfilerTimer = __PROFILE__;
3737
export const enableProfilerCommitHooks = __PROFILE__;
38-
export const enableProfilerNestedUpdatePhase = __PROFILE__;
38+
export const enableProfilerNestedUpdatePhase =
39+
__PROFILE__ && dynamicFeatureFlags.enableSchedulingProfiler;
3940

4041
// Logs additional User Timing API marks for use with an experimental profiling tool.
4142
export const enableSchedulingProfiler = __PROFILE__;

0 commit comments

Comments
 (0)