Diagnostics: add opt-in Tracy critical-path zones #2564
No reviewers
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!2564
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2564/head"
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:03 UTC · original
mokkamokacaffe:diagnostics/tracy-critical-paths→main· +297 −15 · 7 files · 1 commits · closed without mergingPart of #1269.
This adds the first opt-in Tracy CPU timeline for separating XCL translation time from DXC queue/compile time and D3D12 driver pipeline creation.
What is in it
crates/xcl/Cargo.toml: add an optionaltracyfeature usingtracy-client0.19 with on-demand collection and local-machine connections only. Default builds do not enable or compile the client.crates/xcl/src/lib.rs: add one feature-gated zone macro so call sites disappear from ordinary builds.crates/xcl/src/gpu/dxil/coverage.rs: time one direct DXIL translation.crates/xcl/src/gpu/recomp/dxc.rs: distinguish time waiting for the DXC worker result from time spent inside DXC compilation.crates/xcl/src/hle/d3d12x/real.rs: time the common call into D3D12 driver PSO creation, including the retry with the PC pipeline-state IID when required.README.md: document the diagnostic build command and the initial zones.Build the instrumented executable with:
Tested
76b674ec6662c484e90d3988e3da04dd4deb157e:cargo check -p xcl --tests --target x86_64-pc-windows-msvc: passed.cargo check -p xcl --tests --features tracy --target x86_64-pc-windows-msvc: passed, includingtracy-client-sysand every instrumented call site.cargo tree -p xcl --no-default-features: contains no Tracy package.cargo tree -p xcl --features tracy: selectstracy-client0.19.0 andtracy-client-sys0.30.1.git diff --check: passed.Regression run
Pending paired
xcl-smokeblocks from currentmainand this PR's clean head, with the same title and duration.Not tested
link.exeor Windows SDK import libraries.AI use
OpenAI Codex identified the existing common translation and pipeline-creation paths, implemented the optional feature and initial zones, ran both Windows-target compile configurations, checked dependency selection, reviewed the diff and drafted this description.
@mokkamokacaffe on GitHub · 2026-11-25 23:06 UTC · original
Closing in favor of #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.
Pull request closed