We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d29da0a + e7b2bc0 commit 9753d23Copy full SHA for 9753d23
lib/Basic/Statistic.cpp
@@ -33,7 +33,7 @@
33
#ifdef HAVE_SYS_TIME_H
34
#include <sys/time.h>
35
#endif
36
-#ifdef HAVE_SYS_RESOURCE_H
+#if HAVE_GETRUSAGE && !defined(__HAIKU__)
37
#include <sys/resource.h>
38
39
#ifdef HAVE_PROC_PID_RUSAGE
@@ -383,7 +383,7 @@ void UnifiedStatsReporter::recordJobMaxRSS(long rss) {
383
}
384
385
int64_t UnifiedStatsReporter::getChildrenMaxResidentSetSize() {
386
-#if defined(HAVE_GETRUSAGE) && !defined(__HAIKU__)
387
struct rusage RU;
388
::getrusage(RUSAGE_CHILDREN, &RU);
389
int64_t M = static_cast<int64_t>(RU.ru_maxrss);
0 commit comments