Skip to content

fix(trace viewer): make LRUCache per-trace#33245

Merged
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:tv-lru-cache-per-trace
Oct 23, 2024
Merged

fix(trace viewer): make LRUCache per-trace#33245
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:tv-lru-cache-per-trace

Conversation

@dgozman
Copy link
Copy Markdown
Collaborator

@dgozman dgozman commented Oct 23, 2024

Instead of a single global one. This makes the cache collectable when a trace is unloaded. Otherwise, old cache entries stick around and hold traces in memory.

References #33086, #33219, #33141.

Instead of a single global one. This makes the cache collectable
when a trace is unloaded. Otherwise, old cache entries stick
around and hold traces in memory.
Copy link
Copy Markdown
Member

@Skn0tt Skn0tt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

2 flaky ⚠️ [playwright-test] › ui-mode-test-setup.spec.ts:22:5 › should run global setup and teardown @ubuntu-latest-node20-1
⚠️ [webkit-library] › library/video.spec.ts:381:5 › screencast › should capture navigation @webkit-ubuntu-22.04-node18

36564 passed, 626 skipped
✔️✔️✔️

Merge workflow run.

@dgozman dgozman merged commit 9a6e1b7 into microsoft:main Oct 23, 2024
dgozman added a commit to dgozman/playwright that referenced this pull request Oct 24, 2024
whazor pushed a commit to whazor/playwright-trace-viewer-plus that referenced this pull request Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants