Repository navigation
Diagnostics: add opt-in Tracy critical-path zones - #2564
Closed
mokkamokacaffe wants to merge 1 commit into
Closed
mokkamokacaffe wants to merge 1 commit into
mokkamokacaffe wants to merge 1 commit into
Conversation
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.