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
@@ -25,6 +25,7 @@ impl Coming {
|
||||
/// What was found.
|
||||
pub(crate) fn wait(&self) -> Vec<Refresh> {
|
||||
let began = std::time::Instant::now();
|
||||
let _waiting = crate::timeline::span("a list's close waits for the heap's views");
|
||||
let mut found = self.0.lock().unwrap_or_else(|e| e.into_inner());
|
||||
loop {
|
||||
if let Some(found) = found.take() {
|
||||
@@ -56,6 +57,7 @@ pub(crate) fn begin(work: impl FnOnce() -> Vec<Refresh> + Send + 'static) -> std
|
||||
let told = coming.clone();
|
||||
let job: Job = Box::new(move || {
|
||||
// (However it ends, the list that waits goes on.)
|
||||
let _aside = crate::timeline::span("beside: the heap's views");
|
||||
let found = std::panic::catch_unwind(std::panic::AssertUnwindSafe(work)).unwrap_or_default();
|
||||
told.found(found);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user