dillon1000/react
Commit
Browse files [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.
Changed paths4 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…