GeezerVison is showing github.com — Revert "[Scheduler] Profiling features (#16145)" (#16392) · react/react@4ba1412
File treeExpand file treeCollapse file tree Open diff view settings react-reconciler/src/__tests__
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .eslintrc.js -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -142,8 +142,6 @@ module.exports = { | 142 | 142 | ], | 143 | 143 |
| 144 | 144 | globals: { | 145 | | - SharedArrayBuffer: true, | 146 | | - | 147 | 145 | spyOnDev: true, | 148 | 146 | spyOnDevAndProd: true, | 149 | 147 | spyOnProd: true, | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-reconciler/src/__tests__/ReactIncrementalPerf-test.internal.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -136,7 +136,6 @@ describe('ReactDebugFiberPerf', () => { | 136 | 136 | require('shared/ReactFeatureFlags').enableProfilerTimer = false; | 137 | 137 | require('shared/ReactFeatureFlags').replayFailedUnitOfWorkWithInvokeGuardedCallback = false; | 138 | 138 | require('shared/ReactFeatureFlags').debugRenderPhaseSideEffectsForStrictMode = false; | 139 | | - require('scheduler/src/SchedulerFeatureFlags').enableProfiling = false; | 140 | 139 |
| 141 | 140 | // Import after the polyfill is set up: | 142 | 141 | React = require('react'); | |
Collapse file Copy file name to clipboardExpand all lines: packages/scheduler/npm/umd/scheduler.development.js -20Lines changed: 0 additions & 20 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 110 | 110 | ); | 111 | 111 | } | 112 | 112 |
| 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 | | - | 127 | 113 | return Object.freeze({ | 128 | 114 | unstable_now: unstable_now, | 129 | 115 | unstable_scheduleCallback: unstable_scheduleCallback, | | 138 | 124 | unstable_pauseExecution: unstable_pauseExecution, | 139 | 125 | unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, | 140 | 126 | unstable_forceFrameRate: unstable_forceFrameRate, | 141 | | - unstable_startLoggingProfilingEvents: unstable_startLoggingProfilingEvents, | 142 | | - unstable_stopLoggingProfilingEvents: unstable_stopLoggingProfilingEvents, | 143 | 127 | get unstable_IdlePriority() { | 144 | 128 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 145 | 129 | .Scheduler.unstable_IdlePriority; | | 160 | 144 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 161 | 145 | .Scheduler.unstable_UserBlockingPriority; | 162 | 146 | }, | 163 | | - get unstable_sharedProfilingBuffer() { | 164 | | - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 165 | | - .Scheduler.unstable_getFirstCallbackNode; | 166 | | - }, | 167 | 147 | }); | 168 | 148 | }); |
Collapse file Copy file name to clipboardExpand all lines: packages/scheduler/npm/umd/scheduler.production.min.js -20Lines changed: 0 additions & 20 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 104 | 104 | ); | 105 | 105 | } | 106 | 106 |
| 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 | | - | 121 | 107 | return Object.freeze({ | 122 | 108 | unstable_now: unstable_now, | 123 | 109 | unstable_scheduleCallback: unstable_scheduleCallback, | | 132 | 118 | unstable_pauseExecution: unstable_pauseExecution, | 133 | 119 | unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, | 134 | 120 | unstable_forceFrameRate: unstable_forceFrameRate, | 135 | | - unstable_startLoggingProfilingEvents: unstable_startLoggingProfilingEvents, | 136 | | - unstable_stopLoggingProfilingEvents: unstable_stopLoggingProfilingEvents, | 137 | 121 | get unstable_IdlePriority() { | 138 | 122 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 139 | 123 | .Scheduler.unstable_IdlePriority; | | 154 | 138 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 155 | 139 | .Scheduler.unstable_UserBlockingPriority; | 156 | 140 | }, | 157 | | - get unstable_sharedProfilingBuffer() { | 158 | | - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 159 | | - .Scheduler.unstable_getFirstCallbackNode; | 160 | | - }, | 161 | 141 | }); | 162 | 142 | }); |
Collapse file Copy file name to clipboardExpand all lines: packages/scheduler/npm/umd/scheduler.profiling.min.js -20Lines changed: 0 additions & 20 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 104 | 104 | ); | 105 | 105 | } | 106 | 106 |
| 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 | | - | 121 | 107 | return Object.freeze({ | 122 | 108 | unstable_now: unstable_now, | 123 | 109 | unstable_scheduleCallback: unstable_scheduleCallback, | | 132 | 118 | unstable_pauseExecution: unstable_pauseExecution, | 133 | 119 | unstable_getFirstCallbackNode: unstable_getFirstCallbackNode, | 134 | 120 | unstable_forceFrameRate: unstable_forceFrameRate, | 135 | | - unstable_startLoggingProfilingEvents: unstable_startLoggingProfilingEvents, | 136 | | - unstable_stopLoggingProfilingEvents: unstable_stopLoggingProfilingEvents, | 137 | 121 | get unstable_IdlePriority() { | 138 | 122 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 139 | 123 | .Scheduler.unstable_IdlePriority; | | 154 | 138 | return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 155 | 139 | .Scheduler.unstable_UserBlockingPriority; | 156 | 140 | }, | 157 | | - get unstable_sharedProfilingBuffer() { | 158 | | - return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED | 159 | | - .Scheduler.unstable_getFirstCallbackNode; | 160 | | - }, | 161 | 141 | }); | 162 | 142 | }); |
|