wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

Serve guest-profiler results from a local web server

Open jameysharp opened this issue 6 months ago • 2 comments

This is a proof of concept for #7666, but needs quite a bit of polish before merging.

jameysharp avatar Jan 27 '24 00:01 jameysharp

If anyone has suggestions on how to do this better I'd be interested to hear them. In particular, I'm not happy with how many crate dependencies I had to add to the Wasmtime CLI to make this work.

Currently this PR reflects just enough hacking together of pieces to prove that #7666 is possible, so I'm not looking for review on small details, just the big picture design questions.

jameysharp avatar Jan 27 '24 00:01 jameysharp

An alternative approach that shouldn't introduce any additional runtime dependencies would be to self-host this. I.e., to embed a wasi-http/proxy component that can load the profile from a pre-opened directory and serve it from the incoming-handler.

Such a component should be straightforward to run, and, after stripping, be quite small.

tschneidereit avatar Jan 27 '24 01:01 tschneidereit