Skip to content

Commit 4ba1412

Browse files
authored
Revert "[Scheduler] Profiling features (#16145)" (#16392)
This reverts commit a34ca7b.
1 parent b1a03df commit 4ba1412

18 files changed

+35
-919
lines changed

.eslintrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ module.exports = {
142142
],
143143

144144
globals: {
145-
SharedArrayBuffer: true,
146-
147145
spyOnDev: true,
148146
spyOnDevAndProd: true,
149147
spyOnProd: true,

packages/react-reconciler/src/__tests__/ReactIncrementalPerf-test.internal.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ describe('ReactDebugFiberPerf', () => {
136136
require('shared/ReactFeatureFlags').enableProfilerTimer = false;
137137
require('shared/ReactFeatureFlags').replayFailedUnitOfWorkWithInvokeGuardedCallback = false;
138138
require('shared/ReactFeatureFlags').debugRenderPhaseSideEffectsForStrictMode = false;
139-
require('scheduler/src/SchedulerFeatureFlags').enableProfiling = false;
140139

141140
// Import after the polyfill is set up:
142141
React = require('react');

packages/scheduler/npm/umd/scheduler.development.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,6 @@
110110
);
111111
}
112112

113-
function unstable_startLoggingProfilingEvents() {
114-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_startLoggingProfilingEvents.apply(
115-
this,
116-
arguments
117-
);
118-
}
119-
120-
function unstable_stopLoggingProfilingEvents() {
121-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_stopLoggingProfilingEvents.apply(
122-
this,
123-
arguments
124-
);
125-
}
126-
127113
return Object.freeze({
128114
unstable_now: unstable_now,
129115
unstable_scheduleCallback: unstable_scheduleCallback,
@@ -138,8 +124,6 @@
138124
unstable_pauseExecution: unstable_pauseExecution,
139125
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
140126
unstable_forceFrameRate: unstable_forceFrameRate,
141-
unstable_startLoggingProfilingEvents: unstable_startLoggingProfilingEvents,
142-
unstable_stopLoggingProfilingEvents: unstable_stopLoggingProfilingEvents,
143127
get unstable_IdlePriority() {
144128
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
145129
.Scheduler.unstable_IdlePriority;
@@ -160,9 +144,5 @@
160144
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
161145
.Scheduler.unstable_UserBlockingPriority;
162146
},
163-
get unstable_sharedProfilingBuffer() {
164-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
165-
.Scheduler.unstable_getFirstCallbackNode;
166-
},
167147
});
168148
});

packages/scheduler/npm/umd/scheduler.production.min.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,6 @@
104104
);
105105
}
106106

107-
function unstable_startLoggingProfilingEvents() {
108-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_startLoggingProfilingEvents.apply(
109-
this,
110-
arguments
111-
);
112-
}
113-
114-
function unstable_stopLoggingProfilingEvents() {
115-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_stopLoggingProfilingEvents.apply(
116-
this,
117-
arguments
118-
);
119-
}
120-
121107
return Object.freeze({
122108
unstable_now: unstable_now,
123109
unstable_scheduleCallback: unstable_scheduleCallback,
@@ -132,8 +118,6 @@
132118
unstable_pauseExecution: unstable_pauseExecution,
133119
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
134120
unstable_forceFrameRate: unstable_forceFrameRate,
135-
unstable_startLoggingProfilingEvents: unstable_startLoggingProfilingEvents,
136-
unstable_stopLoggingProfilingEvents: unstable_stopLoggingProfilingEvents,
137121
get unstable_IdlePriority() {
138122
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
139123
.Scheduler.unstable_IdlePriority;
@@ -154,9 +138,5 @@
154138
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
155139
.Scheduler.unstable_UserBlockingPriority;
156140
},
157-
get unstable_sharedProfilingBuffer() {
158-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
159-
.Scheduler.unstable_getFirstCallbackNode;
160-
},
161141
});
162142
});

packages/scheduler/npm/umd/scheduler.profiling.min.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,6 @@
104104
);
105105
}
106106

107-
function unstable_startLoggingProfilingEvents() {
108-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_startLoggingProfilingEvents.apply(
109-
this,
110-
arguments
111-
);
112-
}
113-
114-
function unstable_stopLoggingProfilingEvents() {
115-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_stopLoggingProfilingEvents.apply(
116-
this,
117-
arguments
118-
);
119-
}
120-
121107
return Object.freeze({
122108
unstable_now: unstable_now,
123109
unstable_scheduleCallback: unstable_scheduleCallback,
@@ -132,8 +118,6 @@
132118
unstable_pauseExecution: unstable_pauseExecution,
133119
unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
134120
unstable_forceFrameRate: unstable_forceFrameRate,
135-
unstable_startLoggingProfilingEvents: unstable_startLoggingProfilingEvents,
136-
unstable_stopLoggingProfilingEvents: unstable_stopLoggingProfilingEvents,
137121
get unstable_IdlePriority() {
138122
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
139123
.Scheduler.unstable_IdlePriority;
@@ -154,9 +138,5 @@
154138
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
155139
.Scheduler.unstable_UserBlockingPriority;
156140
},
157-
get unstable_sharedProfilingBuffer() {
158-
return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
159-
.Scheduler.unstable_getFirstCallbackNode;
160-
},
161141
});
162142
});

0 commit comments

Comments
 (0)