Currently, wabt has opcodecnt, used to output opcode counts. We would kinda like to see a more general tool to output (and in some sense, visualize) various stats for a given wasm file.

Function/global/import/export counts, opcodes per function, local count (okay it's currently possible to find the max locals using `opcodecnt|grep` but anyway), max stack size, honestly the list is kinda endless...

We do appreciate the existing opcodecnt functionality and its 2 data visualization outputs:

- Count of each opcode by type. (e.g. "local.get")
- Count of each opcode by instance. (e.g. "local.get 1")
Proposal: stats
This is a GitHub Issue
repo:wabt
owner:WebAssembly
Title : Proposal: stats
Issue date:

--- start body ---
Currently, wabt has opcodecnt, used to output opcode counts. We would kinda like to see a more general tool to output (and in some sense, visualize) various stats for a given wasm file.

Function/global/import/export counts, opcodes per function, local count (okay it's currently possible to find the max locals using `opcodecnt|grep` but anyway), max stack size, honestly the list is kinda endless...

We do appreciate the existing opcodecnt functionality and its 2 data visualization outputs:

- Count of each opcode by type. (e.g. "local.get")
- Count of each opcode by instance. (e.g. "local.get 1")
--- end body ---
