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:
1 parent
ba837eeff9
commit
336f613986
25 files changed
+2506
-7
No files matched your search
@@ -1155,6 +1155,7 @@ impl Staging {
|
||||
pub(crate) fn refresh(&self) {
|
||||
use std::sync::atomic::Ordering::Relaxed;
|
||||
let started = std::time::Instant::now();
|
||||
let _texture = crate::timeline::span("a texture's refresh");
|
||||
let read = self.refresh_now();
|
||||
let preparing = &crate::host::PREPARING;
|
||||
preparing[2].fetch_add(started.elapsed().as_micros() as u64, Relaxed);
|
||||
|
||||
Reference in new issue
Block a user