Expand description
Opt-in load-path phase timings (KAKEHASHI_LOAD_TIMING).
Roadmap2-style: default off. Hot path when off is one atomic mode load
per phase start/end. When on, records wall Instant deltas and dumps to
stderr before guest entry (and again on host-side return if any).
Values: unset/0/off = off; 1/on/true = on.
Functions§
- begin_
run - Start a new timed run (clears previous phases). No-op when off.
- dump
- Dump phase table to stderr. Safe before guest entry / after guest return.
- enabled
- Whether load timing is enabled (after first resolve).
- note
- Attach a free-form note (image counts, paths, …).
- record
- Record a completed phase duration in nanoseconds.
- time
- Time a closure and record it under
name. - time_
result - Time a fallible closure.