Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support heap snapshots #156

Merged
merged 2 commits into from
Nov 15, 2023
Merged

feat: support heap snapshots #156

merged 2 commits into from
Nov 15, 2023

Conversation

connor4312
Copy link
Member

@connor4312 connor4312 commented Nov 15, 2023

Supports heap snapshots using the new @vscode/v8-heap-parser module. The
parser runs in a Node.js worker_thread on the extension host, and is
queried by postmessage RPC from connected webviews.

This adds a table view and a cytoscape-powered graph view of retainers,
in the 'flame' package, as seen in pacific standup yesterday.

Most of the work in this PR is reworking the existing structures to
support asynchronously loading data. Heap snapshots are big, far
bigger than CPU profiles or heap profiles, so we don't want to load it
into memory all at once.

Closes microsoft/vscode-js-debug#1855

Supports heap snapshots using the new @vscode/v8-heap-parser module. The
parser runs in a Node.js worker_thread on the extension host, and is
queried by postmessage RPC from connected webviews.

This adds a table view and a cytoscape-powered graph view of retainers,
in the 'flame' package, as seen in pacific standup yesterday.

Most of the work in this PR is reworking the existing structures to
support asynchronously loading data. Heap snapshots are _big_, far
bigger than CPU profiles or heap profiles, so we don't want to load it
into memory all at once.
@connor4312 connor4312 enabled auto-merge November 15, 2023 16:43
@connor4312 connor4312 merged commit 72f6d0c into main Nov 15, 2023
2 checks passed
@connor4312 connor4312 deleted the connor4312/heap-snapshots branch November 15, 2023 18:37
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.

Support viewing heap snapshots
2 participants