dillon1000/react

Commit

[Perf Tracks]: Clear potentially large measures (#34803)

Fixes https://github.com/facebook/react/issues/34770.

We need to clear measures at some point, otherwise all these copies of
props that we end up recording will allocate too much memory in
Chromium. This adds `performance.clearMeasures(...)` calls to such cases
in DEV.

Validated that entries are still shown on Performance panel timeline.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-client/src/ReactFlightPerformanceTrack.js ModifiedM packages/react-reconciler/src/ReactFiberPerformanceTrack.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…