From 94373225d7bd6d47fb4984ae44bd42336def4bcf Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Fri, 10 Feb 2023 14:29:58 -0600 Subject: [PATCH] Extended SimpleMemoryCheck to print RSS info to the logger --- FWCore/Services/plugins/SimpleMemoryCheck.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/FWCore/Services/plugins/SimpleMemoryCheck.cc b/FWCore/Services/plugins/SimpleMemoryCheck.cc index 91de16722191f..8d9d4549292ee 100644 --- a/FWCore/Services/plugins/SimpleMemoryCheck.cc +++ b/FWCore/Services/plugins/SimpleMemoryCheck.cc @@ -480,7 +480,16 @@ namespace edm { << eventR2_ << "\n" << eventT3_ << "\n" << eventT2_ << "\n" - << eventT1_; + << eventT1_ << "\nMemoryReport> Peak rss size " << eventRssT1_.rss + << " Mbytes" + "\n Key events increasing rss:\n" + << eventRssT3_ << "\n" + << eventRssT2_ << "\n" + << eventRssT1_ << "\n" + << eventDeltaRssT3_ << "\n" + << eventDeltaRssT2_ << "\n" + << eventDeltaRssT1_; + ; } if (moduleSummaryRequested_ and not jobReportOutputOnly_) { // changelog 1 LogAbsolute mmr("ModuleMemoryReport"); // at end of if block, mmr