Diagnostics: add opt-in Tracy timelines for shader and driver stalls #2560
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2560
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@mokkamokacaffe on GitHub · 2026-11-25 23:01 UTC · original
Diagnostics: add opt-in Tracy timelines for shader and driver stalls
Summary
Add an optional Tracy build mode that records the CPU-side paths most relevant to shader translation, driver pipeline compilation, worker-queue stalls and GPU wait diagnosis.
The initial implementation should remain disabled in ordinary builds. A diagnostic build connects only to a Tracy profiler on the same machine and records on demand.
Part of #1269.
Motivation
XCL already reports aggregate timings and periodic activity in
xcl.log, and its DRED support identifies pipelines near a device removal. Those reports do not show overlapping work across threads or reveal whether a long delay was spent translating a shader, waiting for a DXC worker, running DXC, waiting for a PSO worker, compiling inside the driver or waiting on a fence.A CPU timeline can answer those questions while preserving XCL's existing logs and hashes as the durable bug-report format.
Proposed stages
Build and use
Run that build, connect the Tracy profiler from the same machine, reproduce the stall, and save the capture with the corresponding
xcl.logandreport.json.Constraints
Initial success criteria
AI use
OpenAI Codex reviewed XCL's existing activity, DRED, translation and pipeline-creation paths and drafted this proposal.
@mokkamokacaffe on GitHub · 2026-11-25 23:07 UTC · original
Closing in favor of PR #2500, which already provides the Tracy infrastructure and substantially broader runtime instrumentation, with Windows execution, retail-title captures and paired smoke coverage.
This PR's direct-DXIL translation zone is not present in #2500. That small addition can be proposed as a focused follow-up after #2500 lands.