Skip to main content

Module util

Module util 

Source
Expand description

Logging, time measurement and small serialization helpers.

Structs§

Logger
run.log (+ standard output) recorder. Corresponds to exec > run.log in the script.
StageTimes
Per-stage accumulated time.
Timeline
Event record (timeline.txt): epoch seconds.nanoseconds event lines. Also kept in memory as (relative time, string).

Enums§

Json
Small JSON value (for the manifest).

Functions§

py_float
Same shape as Python round(x, n) followed by repr (.0 for integers).
timed
Time one stage and record it in run.log.