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
faf5687af9
commit
7c62f5b707
25 files changed
+2506
-7
No files matched your search
@@ -254,8 +254,10 @@ impl Pool {
|
||||
};
|
||||
state.running += 1;
|
||||
drop(state);
|
||||
let working = crate::timeline::span("a landing's job");
|
||||
// SAFETY: counted in `running`, so `each` has not returned.
|
||||
let ran = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| unsafe { (*work.0)(i) }));
|
||||
working.end();
|
||||
state = self.state();
|
||||
state.running -= 1;
|
||||
state.panicked |= ran.is_err();
|
||||
@@ -272,6 +274,7 @@ impl Pool {
|
||||
(0..count).for_each(f);
|
||||
return;
|
||||
}
|
||||
let _spread = crate::timeline::span("landing: spread over threads");
|
||||
let _turn = self.turn.lock().unwrap_or_else(|e| e.into_inner());
|
||||
// SAFETY: the lifetime is left out only until this call returns, and
|
||||
// it does not before no helper is inside `f` and none can enter.
|
||||
|
||||
Reference in new issue
Block a user