Files
codex/codex-rs/utils
taohong-oai af91f6ef2c Add a critical-path utility for exclusive duration attribution (#55804)
## What changed

Add `codex-utils-critical-path` to track shared dependency paths and attribute time to inference, automatic review, user waits, tools, overhead, and unknown work. Parallel joins retain the later-finishing branch, preserving its full history without double-counting overlapping work.

Clip attribution to the requested interval and count unrecorded gaps as overhead. Bound retained history by collapsing it into unknown work at the depth limit, with nonrecursive destruction and bounded debug output.

## Testing

Add unit tests for parallel joins, nested dependencies, ties, user waits, interval clipping, overlapping segments, history exhaustion, and safe formatting and concurrent release on small stacks.

GitOrigin-RevId: 2df7453162491d3ae97bf4bee942730c8a4d5e5c
2026-10-21 07:33:13 +00:00
..