Expand description
Stylus host-I/O tracer: records each WASM host function call made
during Stylus program execution so debug_traceTransaction can
surface them alongside EVM events.
Structs§
- Hostio
Trace Info - One host-I/O record captured during Stylus execution.
- Stylus
Trace Buffer - Shared recording buffer — Stylus runtime pushes; debug handler drains.
- Stylus
Trace Output - Top-level tracer output attached to a
debug_traceTransactionresult when the transaction invoked a Stylus contract.
Functions§
- cache_
trace - Store the Stylus host-I/O records for a tx-hash. Called by the block producer after executing a tx with the trace buffer active.
- take_
cached_ trace - Retrieve + remove the cached trace for a tx-hash. Matches Nitro’s one-shot retrieval semantics: the buffer is drained on first read.
- with_
trace_ buffer - Run
fwith a fresh Stylus host-I/O trace buffer installed on the current thread. The buffer is drained and returned afterfcompletes so callers can attach the records to a debug response.