A timeline of a few frames, with the chain each present came out of (VICTORY_TIMELINE)

Diagnostics only. VICTORY_TIMELINE=<file> records three frames (or
VICTORY_TIMELINE_FRAMES) after VICTORY_TIMELINE_AT seconds and writes a
Chrome trace and a text summary: spans of our work, the waits and wake-ups
of the title's threads (its imports) and of ours (our import table), long
kernel calls on the address space, and when each submission ran on the card.
The summary walks back from each present through who waited on whom.
Nothing is wrapped without the variable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 008de5f9ffcef132079b1af8b7f4f1c22235cee9)
This commit is contained in:
local committed 2026-11-25 07:46:13 -06:00
1 parent faf5687af9
commit 7c62f5b707
25 files changed
+2506 -7

No files matched your search

+7 -1
View File
@@ -78,7 +78,13 @@ impl HostPolicy {
if !self.allows(dll) {
return None;
}
imp::resolve(dll, symbol)
let address = imp::resolve(dll, symbol)?;
// With a timeline asked for, what threads wait with is wrapped.
#[cfg(all(windows, feature = "diagnostics"))]
if let ImportSymbol::Name { name, .. } = symbol {
return Some(victory_gpu::timeline::import(name, address));
}
Some(address)
}
}