KEMBAR78
feat: support heap snapshots by connor4312 · Pull Request #156 · microsoft/vscode-js-profile-visualizer · GitHub
Skip to content

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
@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

3 participants