Skip to content

feat: track stacktraces for leaking collections#25

Merged
nolanlawson merged 4 commits intomasterfrom
leaking-collections-stacktraces-cleaned
Dec 28, 2021
Merged

feat: track stacktraces for leaking collections#25
nolanlawson merged 4 commits intomasterfrom
leaking-collections-stacktraces-cleaned

Conversation

@nolanlawson
Copy link
Copy Markdown
Owner

Fixes #14

Tracks who is adding onto an array/object/map/set and shows stacktraces. Stacktraces can even resolve sourcemaps. Switched from markdown-table to table to get newlines to work.

Screenshot from 2021-12-27 16-17-21

@nolanlawson
Copy link
Copy Markdown
Owner Author

I've run this against a few prod sites and it seems to work. Doesn't usually find sourcemaps, but on the few sites with sourcemaps, it seems to work.

@nolanlawson nolanlawson merged commit 59fa3da into master Dec 28, 2021
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.

Detect what code is causing a collection to leak

1 participant