https://github.com/rreverser/wasm-stats
https://github.com/rreverser/wasm-stats
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rreverser/wasm-stats
- Owner: RReverser
- License: apache-2.0
- Created: 2021-08-19T11:48:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-10T16:11:59.000Z (over 4 years ago)
- Last Synced: 2025-04-04T20:09:32.566Z (about 1 year ago)
- Language: Rust
- Size: 146 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# wasm-stats
A tool used for WebAssembly analysis in Web Almanac.
It takes a directory with WebAssembly files as its only CLI argument:
```bash
$ cargo run --release -- wasms-dir
```
There, it walks over all the `.wasm` files (`wasms-dir/*.wasm`) and collects all the revelant stats - instruction kinds, section sizes, numbers of imports/exports, etc.
The results are stored in a newline-delimited JSON file `stats.json` in the same provided directory (`wasms-dir/stats.json`) that can be later imported in a database like BigQuery for further analysis.
If execution was stopped midway for any reason, the next rerun of the tool will automatically skip any files that have been already found in `stats.json` and resume analysis.