|
oct
|
Classes | |
| class | TimingSample |
Functions | |
| None | _failure () |
| str|None | _token (object value) |
| None | _append (Path root, TimingSample sample) |
| list[dict] | read_records (Path root) |
| Iterator[TimingSample] | timed_stage (Path root, str stage, *, str kind="stage", str|None scope=None, int|None files=None, int|str outcome="ok") |
| str | command_stage (object ctx) |
Purpose
-------
Persist stage timings.
Responsibilities
----------------
- Keep local timing data bounded, private and advisory.
Diagnostics
-----------
Domain: GENERAL
Levels:
L1 -- instrumentation failures
L2 -- lifecycle
L3 -- semantic details
L4 -- deep tracing
Contracts
---------
- Timing instrumentation never changes the wrapped operation's outcome.
- Only the fixed timing schema is persisted; command arguments are never stored.
Dependencies
------------
- oc_diagnostics (structured timing diagnostics)
- oct (version and timing contracts)
- click (lazy; walks the registered command groups to name the stage)
|
protected |
|
protected |
|
protected |
| str oct.timing.ledger.command_stage | ( | object | ctx | ) |
| list[dict] oct.timing.ledger.read_records | ( | Path | root | ) |
| Iterator[TimingSample] oct.timing.ledger.timed_stage | ( | Path | root, |
| str | stage, | ||
| * | , | ||
| str | kind = "stage", | ||
| str | None | scope = None, | ||
| int | None | files = None, | ||
| int | str | outcome = "ok" ) |