By: ValentinHirschi <valentin.hirschi@gmail.com>
vakint timing: an opt-in live view of a thread's stages, for a monitor on another thread vakint::timing's counters (the four exclusive stages contraction, lowering, reduction and finalization that the beta's DIAGRAM_REDUCTION line prints) are thread-local: only the owning thread can read them. publish_live(Arc<LiveStages>) attaches a shared view to the calling thread until its guard drops; at every guard transition the counters accumulated since the attachment and the stage now active are stored in relaxed atomics, which LiveStages::read returns on any thread (the running interval of the active stage included). It only observes: values, outputs and the thread-local counters never depend on it. While no thread of the process is attached, a transition costs one more relaxed atomic load. For the beta's `compute --monitor` (a terminal monitor fed by these events). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>