dillon1000/react

Commit

[Scheduler] Prevent event log from growing unbounded (#16781)

If a Scheduler profile runs without stopping, the event log will grow
unbounded. Eventually it will run out of memory and the VM will throw
an error.

To prevent this from happening, let's automatically stop the profiler
once the log exceeds a certain limit. We'll also print a warning with
advice to call `stopLoggingProfilingEvents` explicitly.
Browse files
Changed paths4 files
First-parent comparison
M packages/scheduler/src/SchedulerProfiling.js ModifiedM packages/scheduler/src/__tests__/SchedulerProfiling-test.js ModifiedM scripts/babel/transform-prevent-infinite-loops.js ModifiedM scripts/jest/preprocessor.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…