Is there any verbose mode for 'wasmtime run'?
@Joey Gouly you can try turning on logging with RUST_LOG=trace wasmtime -d foo.wat
perhaps?
Thanks, that gives me some output!
Or =debug ?
is there a way to run wasmtime single threaded?
@Joey Gouly I think RAYON_THREADS=1
should do that
RAYON_NUM_THREADS
ah sorry, that should do it
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
That, or --disable-cache
Anyone know how I could print what cranelift function ended up at what address once JITted?
I found crates/jit/src/code_memory.rs
, which I might be able to add some dbg!()
to
@Joey Gouly you can use debugger/lldb too, can you try something for me?
I can try yup
https://gist.github.com/yurydelendik/e11fb47e3ae009973024755717a0e658
lldb target/debug/wasmtime -- tests/debug/testsuite/fib-wasm.wasm -g --invoke fib 4 b invoke_export r dis -s fib
@Yury Delendik does that need to be a debug version of wasmtime?
it can be release
not sure if you can break into debugger before module is destroyed though
That doesn't work for me. This is using the new backend, maybe that's the issue
hmm, maybe. thanks for trying. that (as demo in the gist) shall work on the master
Last updated: Dec 23 2024 at 12:05 UTC