Diagnostics: add opt-in Tracy critical-path zones #2554
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2564"
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:03:04Z.
Part 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.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T23:06:38Z.
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