oct
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oct/timing/__init__.py
4
5"""
6Purpose
7-------
8Provide local timing ledger and advisory report modules.
9
10Responsibilities
11----------------
12- Keep local timing data bounded, private and advisory.
13
14Diagnostics
15-----------
16Domain: GENERAL
17Levels:
18 L1 -- instrumentation failures
19 L2 -- lifecycle
20 L3 -- semantic details
21 L4 -- deep tracing
22
23Contracts
24---------
25- Timing instrumentation never changes the wrapped operation's outcome.
26- Only the fixed timing schema is persisted; command arguments are never stored.
27
28Dependencies
29------------
30- oc_diagnostics (structured timing diagnostics)
31- oct.timing.tiers (re-exported: stage tiers and tier budgets)
32- oct.core.diagnostics (_dbg structured logger; imported but never called here)
33"""
34from oct.timing.tiers import (
35 STAGE_TIERS, TIER_BUDGETS_MS, budget_for, budgets_ms, tier_for,
36)
37# OCT-LINT: disable-file=dbg_usage reason="Plan 263: a re-export package root with no function or method, so any _dbg call here would run before oc_diagnostics.init() and add a RuntimeWarning to every oct invocation"
38from oct.core.diagnostics import _dbg
39
40__all__ = ["STAGE_TIERS", "TIER_BUDGETS_MS", "budget_for", "budgets_ms", "tier_for"]