I've been working on a record and replay system for WASM to help us isolate performance-sensitive functions at work. It takes a WASM module and instruments it to record all calls to a function along with the entire state of the module, and then that log of calls can be replayed through another instrumented version of the module. Ugly right now and very simple but the basic workflow is there.