#parser #v8 #snapshot #heap #graph #analyze #javascript

v8-heap-parser

A library for parsing V8 heap snapshots

2 releases (1 stable)

1.1.0 Dec 7, 2023
0.1.0 Dec 7, 2023

#679 in WebAssembly

BSD-3-Clause

64KB
1.5K SLoC

@vscode/v8-heap-parser

crates.io Documentation BSD-3-Clause

This package contains a library to parse and analyze V8 heap snapshots. It is published both as a Rust crate and npm package with WebAssembly bindings. It takes as input in the V8 .heapshot format, parses it to a graph structure, and exposes information about that graph.

The APIs exposed by the Rust package and JavaScript package are separate: heap snapshots are very large, and we have optimized the JavaScript bindings for usage in VS Code's visualization tools. However, if there's more information you need from the bindings, please make a pull requeset!

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Dependencies

~2.6–4MB
~66K SLoC