Diagnostics: add opt-in Tracy timelines for shader and driver stalls #2550
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?
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T23:01:08Z.
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.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T23:07:23Z.
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.