Skip to content

fix(rust): pause wall slice on async host waits, preserve activeUs, fold once in checkpoint - #198

Merged
kommander merged 2 commits into
devfrom
fix/slice-wall-wait-and-precision
Dec 3, 2026
Merged

kommander merged 2 commits into
devfrom
fix/slice-wall-wait-and-precision

Conversation

@kommander

Copy link
Copy Markdown
Contributor

Follow-up to #195:

  • Pause Slice (wall: None) while waiting on async host calls (and exclude async host launch/poll/restart spans) so Clock::Wall slice_ms does not count wait time or trip SliceExceeded during waits or across wait suspends.
  • Save optional budget.activeUs alongside activeMs (FORMAT 4 unchanged, falling back to activeMs * 1000) so sub-1ms ThreadCpu suspend/resume loops do not clip stretchUs against truncated activeMs.
  • Combine time_used() and carried() into one Vm::budget_used() / CpuMeter::totals() call so checkpoint() folds once.

@kommander
kommander merged commit f19eb66 into dev Dec 3, 2026
2 checks passed
@kommander
kommander deleted the fix/slice-wall-wait-and-precision branch December 3, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant