Skip to content

Track compaction time in turn profiles - #34835

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/50f0e1cf19789a807f9f56c2ef763c620a5d641c
Jul 22, 2026
Merged

Track compaction time in turn profiles#34835
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/50f0e1cf19789a807f9f56c2ef763c620a5d641c

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 22, 2026

Copy link
Copy Markdown

Track compaction time in turn profiles

What changed

  • Add compaction_ms to turn profile facts and turn analytics events.
  • Measure manual and automatic compaction as an exclusive profile phase instead of including it in surrounding idle time.
  • Complete the profile and total turn duration from the same instant so their elapsed times remain consistent.

Testing

  • Cover compaction phase accounting and profile-duration consistency.
  • Update turn event serialization coverage for compaction_ms.

## What changed

- Add `compaction_ms` to turn profile facts and turn analytics events.
- Measure manual and automatic compaction as an exclusive profile phase instead of including it in surrounding idle time.
- Complete the profile and total turn duration from the same instant so their elapsed times remain consistent.

## Testing

- Cover compaction phase accounting and profile-duration consistency.
- Update turn event serialization coverage for `compaction_ms`.

GitOrigin-RevId: 50f0e1cf19789a807f9f56c2ef763c620a5d641c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/50f0e1cf19789a807f9f56c2ef763c620a5d641c branch from d7d1bc7 to bd5b55e Compare July 22, 2026 22:14
@copyberry
copyberry Bot merged commit bd5b55e into main Jul 22, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/50f0e1cf19789a807f9f56c2ef763c620a5d641c branch July 22, 2026 22:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 22, 2026
@uKER
uKER temporarily deployed to issue-triage July 22, 2026 22:31 — with GitHub Actions Inactive
@uKER
uKER temporarily deployed to issue-triage July 22, 2026 22:31 — with GitHub Actions Inactive
@uKER
uKER temporarily deployed to issue-triage July 22, 2026 22:31 — with GitHub Actions Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants