Isolate CPU timeline captures #33

Open
github-bot wants to merge 1 commit from github-bot/gh-33 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-12-03 04:21 UTC · original
avt0m4t48:fix-timeline-capture-boundaries → main · +308 −207 · 8 files · 1 commits · draft

Change

Give CPU timeline operations the ID of the capture in which they start. Validate that ID under a short publication permit before touching event or stack storage. Stop closes the gate and drains those permits before it copies and reuses the buffers. The stall watcher also checks its originating ID while holding the stage lock, before it can claim a report.

Verification

In both pinned Linux replays, a span from the previous capture appeared once in the original recorder and disappeared with the patch. A separate reproduction woke a delayed stall watcher during the next recording. The original watcher claimed that second recording after its opening marker. The patched watcher exited and the next present completed the normal two-marker recording. The directed fixture also checked the current watcher’s stall report, naming and frame counts, paused stack and event reservations, Point boundaries, wait buckets and sampled thread IDs.

In the public event-only Linux fixture, one producer took 43.12 → 56.24 ns/event and four took 56.63 → 80.65 ns/event. Empty span timing with capture off was within measurement variation. Stop can wait for a descheduled publisher. These fixtures cover CPU recording with simulated Windows calls.

The standalone GPU tests and the integrated workspace test targets type-checked for Windows MSVC with diagnostics, pure-Rust BLAKE3 and metadata-only allocator configuration. The integrated workspace also type-checked without diagnostics. The staged source passed the asset policy. Native hooks, GPU timestamps and frame timing remain unmeasured.

**@⁠avt0m4t48** on GitHub · 2026-12-03 04:21 UTC · [original](https://github.com/linkoovosh/LinkoArts-build/pull/33) `avt0m4t48:fix-timeline-capture-boundaries` → `main` · +308 −207 · 8 files · 1 commits · draft ### Change Give CPU timeline operations the ID of the capture in which they start. Validate that ID under a short publication permit before touching event or stack storage. Stop closes the gate and drains those permits before it copies and reuses the buffers. The stall watcher also checks its originating ID while holding the stage lock, before it can claim a report. ### Verification In both pinned Linux replays, a span from the previous capture appeared once in the original recorder and disappeared with the patch. A separate reproduction woke a delayed stall watcher during the next recording. The original watcher claimed that second recording after its opening marker. The patched watcher exited and the next present completed the normal two-marker recording. The directed fixture also checked the current watcher’s stall report, naming and frame counts, paused stack and event reservations, Point boundaries, wait buckets and sampled thread IDs. In the public event-only Linux fixture, one producer took 43.12 → 56.24 ns/event and four took 56.63 → 80.65 ns/event. Empty span timing with capture off was within measurement variation. Stop can wait for a descheduled publisher. These fixtures cover CPU recording with simulated Windows calls. The standalone GPU tests and the integrated workspace test targets type-checked for Windows MSVC with diagnostics, pure-Rust BLAKE3 and metadata-only allocator configuration. The integrated workspace also type-checked without diagnostics. The staged source passed the asset policy. Native hooks, GPU timestamps and frame timing remain unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 05:22:18 +00:00
This pull request has changes conflicting with the target branch.
  • crates/darner-gpu/src/timeline/record.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/33/head:github-bot/gh-33'
git switch 'github-bot/gh-33'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-33'
git switch 'github-bot/gh-33'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-33'
git switch 'github-bot/gh-33'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-33'
git switch 'main'
git merge --squash 'github-bot/gh-33'
git switch 'main'
git merge --ff-only 'github-bot/gh-33'
git switch 'main'
git merge 'github-bot/gh-33'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.