pub fn with_trace_buffer<F, T>(f: F) -> (T, Vec<HostioTraceInfo>)where
F: FnOnce() -> T,Expand description
Run f with a fresh Stylus host-I/O trace buffer installed on the
current thread. The buffer is drained and returned after f
completes so callers can attach the records to a debug response.
This is the integration seam between debug_traceTransaction and
the Stylus runtime: the debug handler wraps its tx execution in a
with_trace_buffer call and then surfaces the records alongside
the standard EVM trace.