Skip to content

Commit 2deb6f8

Browse files
author
Brian Vaughn
committed
Disabled Scheduler sampling profiler feature flag
1 parent e2fd460 commit 2deb6f8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/scheduler/src/SchedulerFeatureFlags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
export const enableSchedulerDebugging = false;
1010
export const enableIsInputPending = false;
11-
export const enableProfiling = __PROFILE__;
11+
export const enableProfiling = false;

packages/scheduler/src/__tests__/SchedulerProfiling-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ function priorityLevelToString(priorityLevel) {
4444
}
4545

4646
describe('Scheduler', () => {
47-
if (!__PROFILE__) {
47+
const {enableProfiling} = require('scheduler/src/SchedulerFeatureFlags');
48+
if (!enableProfiling) {
4849
// The tests in this suite only apply when profiling is on
4950
it('profiling APIs are not available', () => {
5051
Scheduler = require('scheduler');

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
export const {
1010
enableIsInputPending,
1111
enableSchedulerDebugging,
12-
enableProfiling: enableProfilingFeatureFlag,
1312
} = require('SchedulerFeatureFlags');
1413

15-
export const enableProfiling = __PROFILE__ && enableProfilingFeatureFlag;
14+
export const enableProfiling = false;

0 commit comments

Comments
 (0)