From 7c28126d8d2b6e9ffdb8178ff2b25da10af7484c Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 1 Oct 2015 16:50:27 +0200 Subject: [PATCH] Tests/noDist: allow to monitor RSS for classic algorithms too --- Tests/noDist/testBlockedUniformCompare.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tests/noDist/testBlockedUniformCompare.cpp b/Tests/noDist/testBlockedUniformCompare.cpp index ca89532f..2ed31d2f 100644 --- a/Tests/noDist/testBlockedUniformCompare.cpp +++ b/Tests/noDist/testBlockedUniformCompare.cpp @@ -541,7 +541,12 @@ struct RunContainer{ } } // ----------------------------------------------------- - + #ifdef MEMORY_USAGE + // Get the maximum resident set size (RSS) in kilobytes + struct rusage usage; + getrusage(RUSAGE_SELF, &usage); + std::cout << "Done " << "(@RSS = " << usage.ru_maxrss << "KB)." << std::endl; + #endif if(FParameters::existParameter(argc, argv, LocalOptionNoValidate.options) == false){ // ----------------------------------------------------- FMath::FAccurater potentialDiff; -- GitLab