Expand description
Structs§
- Hostio
Record - Single recorded host-I/O call.
Functions§
- disable
- Clear the active buffer for the current thread.
- enable
- Install a buffer for the current thread. Subsequent
recordcalls append to it untildisableis called. - enter_
subcall - Push a fresh sub-call frame. Subsequent
recordcalls (until the matchingexit_subcall) accumulate inside this frame. - exit_
subcall - Pop the top sub-call frame and return its accumulated records. The
parent CALL/CREATE hostio attaches this list as its
steps. - is_
active - Whether tracing is active on the current thread — cheap check the host functions can use to avoid building args/outs when disabled.
- record
- Push one record into the active buffer (or the open sub-frame, if any). A no-op when tracing is disabled — zero cost on the hot path.
- record_
ink - Record a host-function call with an ink delta captured by the caller. Used where args/outs aren’t meaningful but ink cost is.
- record_
leaf - Convenience wrapper for host functions that want to record the call name with optional args + outs and no ink delta (e.g., leaf host functions that never block or touch state).
- record_
with_ steps - Like
recordbut with pre-collected sub-frame records attached assteps(used by CALL/CREATE family hostios after popping their own sub-frame). - take
- Take and clear the active buffer’s contents.