Repository navigation
Add a mapped D3D12 trace sink for instrumented boot - #8271
gabrielsteglich wants to merge 2 commits into
Conversation
|
Independent build + test: PASS AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo, Python 3.13 ( Head
Code check:
One note: if the host process is killed (crash, Task Manager), the file stays at the full 64 MiB with zeros after the last record. The |
|
Tested For this change. Native: the new ctest Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through
Under Wine the tree is test by test the same as Because the five were built together, there is no per-PR negative control in this run: a regression would have shown as a difference from |
|
Tested ad8cef7 on Windows 11 Pro 10.0.26300, MSVC 14.51 (VS Build Tools 2026), Windows SDK 10.0.26100, NVIDIA GeForce RTX 4060 / 621.24, Khronos Vulkan headers via Merged onto main 6312c05 (clean), full runtime build, The new AI-assisted (Claude Code). No game files. |
Claimed in coordination issue #8047
What and why
Boot diagnostics reported that flushing every D3D12 trace line to a busy disk could trigger the title's startup watchdog. Add
--trace-d3d12-file FILEto write ordered records into a dedicated 64 MiB mapped file. Write complete lines before publishing them, mark a full file once, and keep the existing trace filtering active through exhaustion. Normal exit flushes and trims the file.boot_trace.pycan read completed lines after a process terminates abnormally. The existing--trace-d3d12stderr sink remains available.Tested
ad8cef77foverdde82f27e. Three focused CTests and all 23test_boot_trace.pytests passed. Covered concurrent record ordering, normal exit, process termination, saturation, existing-file refusal, and stderr compatibility.tiny_frameexited zero with both sinks, producing the same 19 ordered D3D12 records and zero validation errors.AI-assisted (Codex).