Skip to content

CLI statistics for wasmtime modules #10519

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

Open
MA3CIN opened this issue Apr 3, 2025 · 1 comment
Open

CLI statistics for wasmtime modules #10519

MA3CIN opened this issue Apr 3, 2025 · 1 comment

Comments

@MA3CIN
Copy link

MA3CIN commented Apr 3, 2025

Feature

I believe wasmtime could benefit from outputting statistics regarding running instances. I'd ideally love to see: CPU, MEMORY usage and start up time (for cold starts)

Benefit

I believe outputting these stats will make a direct comparison to containers easier, thus making wasmtime adoption more appealing by highlighting its strong sides

Implementation

WasmEdge CLI has something simliar (not exactly all of the stats, but its a start) with the CLI option "--enable-all-statistics" (https://wasmedge.org/docs/start/build-and-run/cli/)

Alternatives

I know that wasmtime supports linux profiling with perf, but i was not able to measure the 3 metrics mentioned above using perf

@alexcrichton
Copy link
Member

Thanks for the report! These sorts of metrics wouldn't be too bad to measure, for example memory consumed by the wasm module would be pretty easy to measure. Other metrics though like time taken, instructions executed, or fuel, can come at a cost of runtime in wasm itself.

These sorts of features can of course always be built for embeddings of Wasmtime and so this is mostly a question of what the CLI does. I think it'd be reasonable to experiment with some flags to the CLI and test this out, and PRs are definitely welcome in this area!

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

No branches or pull requests

2 participants