From 2af52165e07a4dd8e1b04a17afcc4b0d86c6cbdb Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Thu, 21 Mar 2024 09:23:27 -0500 Subject: [PATCH] Modified message from MaxMemoryPreload Now easier for a script to get the info. --- PerfTools/MaxMemoryPreload/src/preload.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PerfTools/MaxMemoryPreload/src/preload.cc b/PerfTools/MaxMemoryPreload/src/preload.cc index cee0821295419..96b57dac97760 100644 --- a/PerfTools/MaxMemoryPreload/src/preload.cc +++ b/PerfTools/MaxMemoryPreload/src/preload.cc @@ -62,10 +62,10 @@ namespace { auto allocs = nAllocations_.load(std::memory_order_acquire); auto deallocs = nDeallocations_.load(std::memory_order_acquire); - std::cerr << "Memory Report" - << "\n total memory requested: " << finalRequested << "\n max memory used: " << maxActual - << "\n presently used: " << present << "\n # allocations calls: " << allocs - << "\n # deallocations calls: " << deallocs << "\n"; + std::cerr << "Memory Report: total memory requested: " << finalRequested + << "\nMemory Report: max memory used: " << maxActual << "\nMemory Report: presently used: " << present + << "\nMemory Report: # allocations calls: " << allocs + << "\nMemory Report: # deallocations calls: " << deallocs << "\n"; } private: