Isolate CPU timeline captures #33
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/linkoovosh--LinkoArts-build!33
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-33"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@avt0m4t48 on GitHub · 2026-12-03 04:21 UTC · original
avt0m4t48:fix-timeline-capture-boundaries→main· +308 −207 · 8 files · 1 commits · draftChange
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.
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.Merge
Merge the changes and update on Forgejo.