Skip to content

[Perf Tracks]: Clear potentially large measures - #34803

Merged
hoxyq merged 1 commit into
react:mainfrom
hoxyq:perf-tracks/clear-expensive-measures
Oct 13, 2025
Merged

hoxyq merged 1 commit into
react:mainfrom
hoxyq:perf-tracks/clear-expensive-measures

Conversation

@hoxyq

@hoxyq hoxyq commented Oct 10, 2025 •

Copy link
Copy Markdown
Collaborator

Fixes #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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Massive memory allocations using React dev build under frequent updates (prod build unaffected)

3 participants