Skip to content

Commit 03b3e60

Browse files
committed
Logging
1 parent 389a374 commit 03b3e60

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/test/perf/crossthread_memgrowth/crossthread_memgrowth.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ int main(int argc, char** argv)
316316
total_frees.load(std::memory_order_relaxed),
317317
get_committed(),
318318
get_peak()});
319+
auto s = samples.back();
320+
snmalloc::message<128>("Sample at {}s: allocs={}, frees={}, committed={} bytes, peak={} bytes",
321+
s.second,
322+
s.allocs_total,
323+
s.frees_total,
324+
s.committed_bytes,
325+
s.peak_bytes);
319326
}
320327

321328
// --- Shut down workers and drain remaining allocations ---

0 commit comments

Comments
 (0)