Skip to content

Commit

Permalink
Merge pull request #41604 from Dr15Jones/fixSimpleMemoryMax
Browse files Browse the repository at this point in the history
Record max for VSize and RSS in SimpleMemoryCheck
  • Loading branch information
cmsbuild authored May 10, 2023
2 parents bc807e0 + d25596e commit efddba7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions FWCore/Services/plugins/SimpleMemoryCheck.cc
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,14 @@ namespace edm {
}

void SimpleMemoryCheck::updateMax() {
if ((*current_ > max_) || oncePerEventMode_) {
if (count_ >= num_to_skip_) {
auto v = *current_;
if ((v > max_) || oncePerEventMode_) {
if (max_.vsize < v.vsize) {
max_.vsize = v.vsize;
}
if (max_.rss < v.rss) {
max_.rss = v.rss;
}
max_ = *current_;
}
}

Expand Down

0 comments on commit efddba7

Please sign in to comment.