Stream: general

Topic: wasmtime-run-verbose


view this post on Zulip Joey Gouly (Mar 03 2020 at 16:10):

Is there any verbose mode for 'wasmtime run'?

view this post on Zulip Alex Crichton (Mar 03 2020 at 16:14):

@Joey Gouly you can try turning on logging with RUST_LOG=trace wasmtime -d foo.wat perhaps?

view this post on Zulip Joey Gouly (Mar 03 2020 at 16:17):

Thanks, that gives me some output!

view this post on Zulip Julian Seward (Mar 03 2020 at 16:17):

Or =debug ?

view this post on Zulip Joey Gouly (Mar 03 2020 at 16:18):

is there a way to run wasmtime single threaded?

view this post on Zulip Alex Crichton (Mar 03 2020 at 16:24):

@Joey Gouly I think RAYON_THREADS=1 should do that

view this post on Zulip Joey Gouly (Mar 03 2020 at 16:27):

RAYON_NUM_THREADS

view this post on Zulip Alex Crichton (Mar 03 2020 at 16:27):

ah sorry, that should do it

view this post on Zulip Joey Gouly (Mar 03 2020 at 16:28):

wasmtime does some caching right? If so, can I disable / delete that?
EDIT: wasmtime config new, and then edit the .toml to say enabled = false

view this post on Zulip Dan Gohman (Mar 03 2020 at 16:32):

That, or --disable-cache

view this post on Zulip Joey Gouly (Mar 10 2020 at 15:28):

Anyone know how I could print what cranelift function ended up at what address once JITted?

view this post on Zulip Joey Gouly (Mar 10 2020 at 15:40):

I found crates/jit/src/code_memory.rs, which I might be able to add some dbg!() to

view this post on Zulip Yury Delendik (Mar 10 2020 at 15:44):

@Joey Gouly you can use debugger/lldb too, can you try something for me?

view this post on Zulip Joey Gouly (Mar 10 2020 at 15:44):

I can try yup

view this post on Zulip Yury Delendik (Mar 10 2020 at 15:45):

https://gist.github.com/yurydelendik/e11fb47e3ae009973024755717a0e658

GitHub Gist: instantly share code, notes, and snippets.

view this post on Zulip Yury Delendik (Mar 10 2020 at 15:46):

lldb target/debug/wasmtime -- tests/debug/testsuite/fib-wasm.wasm -g --invoke fib 4
b invoke_export
r
dis -s fib

view this post on Zulip Joey Gouly (Mar 10 2020 at 15:46):

@Yury Delendik does that need to be a debug version of wasmtime?

view this post on Zulip Yury Delendik (Mar 10 2020 at 15:46):

it can be release

view this post on Zulip Yury Delendik (Mar 10 2020 at 15:48):

not sure if you can break into debugger before module is destroyed though

view this post on Zulip Joey Gouly (Mar 10 2020 at 15:48):

That doesn't work for me. This is using the new backend, maybe that's the issue

view this post on Zulip Yury Delendik (Mar 10 2020 at 15:49):

hmm, maybe. thanks for trying. that (as demo in the gist) shall work on the master


Last updated: Oct 23 2024 at 20:03 UTC