Skip to content
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

Add WASI hostcall tracing #9

Open
jeffcharles opened this issue Apr 13, 2022 · 0 comments
Open

Add WASI hostcall tracing #9

jeffcharles opened this issue Apr 13, 2022 · 0 comments

Comments

@jeffcharles
Copy link
Contributor

jeffcharles commented Apr 13, 2022

I think there would be value in adding a flag that displays the WASI hostcalls made as part of running a function. This could be used to as part of investigating why a function's latency has unexpectedly increased.

The wasi-common crate used by wasmtime has trace level log statements that contain the hostcalls made as well as their arguments and return values. This crate could expose a way to display those log messages on the console.

For example, when running wasmtime directly, I can set RUST_LOG=wasi_common=trace to see details about the WASI hostcalls.

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

1 participant