Stream: git-wasmtime

Topic: wasmtime / PR #5975 Introduce the `wasmstime-explorer` crate


view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2023 at 01:28):

fitzgen opened PR #5975 from explorer to main:

This implements Godbolt Compiler Explorer-like functionality for Wasmtime and Cranelift. Given a Wasm module, it compiles the module to native code and then writes a standalone HTML file that gives a split pane view between the WAT and ASM disassemblies.

THIS IS VERY MUCH AN MVP!!! Tons of stuff we could do with this, very little it actually does so far.

Usage:

$ wasmtime explore test.wasm -o test.explore.html
$ xdg-open test.explore.html

Once visiting the HTML page, you can hover over lines of WAT or asm and the corresponding lines will be highlighted. You can also click to scroll the corresponding line into view.

Here is a little screen recording, although the mouse itself isn't captured so it is a little hard to see what is going on:

Screencast from 2023-03-09 17-22-06.webm

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2023 at 01:28):

fitzgen requested alexcrichton for a review on PR #5975.


Last updated: Dec 23 2024 at 12:05 UTC