Skip to content
6 changes: 4 additions & 2 deletions d3d12/crates/leonida-gpu/src/census.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,13 @@ pub(crate) fn log() {
for line in lines(&stands()) {
tracing::info!("{line}");
}
let [waiting, handed] = crate::host::waiting_to_go();
let [waiting, handed, in_place, limit] = crate::host::waiting_to_go();
tracing::info!(
"memory, what waits to be let go: {waiting} objects let go that wait for the submissions that may use them (LEONIDA_BURY_LAG), \
{handed} retired objects, landed host lists and lists' fronts handed to the thread that lets them go \
and not let go yet (LEONIDA_REAPER=0: let go by the submitting thread)"
and not let go yet (LEONIDA_REAPER=0: let go by the submitting thread); \
{in_place} let go by the thread done with them instead, since the start, the reaper thread's line holding \
LEONIDA_REAPER_LIMIT={limit} or more (0: no bound)"
);
}

Expand Down
9 changes: 8 additions & 1 deletion d3d12/crates/leonida-gpu/src/copystat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ pub(crate) enum C {
WaitsForGroups,
WaitsForBuffers,
IndirectBounded,
/// Of `ResetNs`: what the lists held let go (their steps, states and
/// scratch), and their allocators and lists reset
/// (`crate::host::HostList::reset`).
ResetLetGoNs,
ResetCommandsNs,
}
const COUNTERS: usize = 80;
/// One of some sets of counters, each in lines of the processor's memory of
Expand Down Expand Up @@ -1319,7 +1324,7 @@ pub(crate) fn log(frames: f64) {
tracing::info!(
"frame account per frame: after a present {:.1} ms until the first list call and {:.1} ms \
until the first submission; {:.1} ms from the last submission to the present call; \
lists reset in {:.1} ms; the process ran {user:.0} ms user + {kernel:.0} ms kernel on \
lists reset in {:.1} ms (what they held let go {:.1}, allocators and lists reset {:.1}); the process ran {user:.0} ms user + {kernel:.0} ms kernel on \
all threads; what shaders wrote: {:.1} ms finding {:.0} pieces that differ, {:.1} ms \
putting them back; texture uploads: {:.0} recorded, {:.0} left out; {:.1} held \
submissions run at the present with their waits not met; waits for memory values: \
Expand All @@ -1329,6 +1334,8 @@ pub(crate) fn log(frames: f64) {
ms(c[C::UntilSubmitUs as usize]),
ms(c[C::TailUs as usize]),
c[C::ResetNs as usize] / 1e6,
c[C::ResetLetGoNs as usize] / 1e6,
c[C::ResetCommandsNs as usize] / 1e6,
ms(c[C::BackScanUs as usize]),
c[C::BackDiffer as usize],
ms(c[C::BackSyncUs as usize]),
Expand Down
Loading
Loading