From c1dde948112841490c539d35e4ca5c6cafbd6e71 Mon Sep 17 00:00:00 2001 From: Gavin Halliday Date: Mon, 30 Sep 2024 16:21:11 +0100 Subject: [PATCH] HPCC-32750 Add page faults and context switches to the periodic logging Signed-off-by: Gavin Halliday --- system/jlib/jdebug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/jlib/jdebug.cpp b/system/jlib/jdebug.cpp index 934067258c3..2ebb5587af9 100644 --- a/system/jlib/jdebug.cpp +++ b/system/jlib/jdebug.cpp @@ -1504,8 +1504,8 @@ void getMemStats(StringBuffer &out, unsigned &memused, unsigned &memtot) muval = 100; // ! - out.appendf("MU=%3u%% MAL=%" I64F "d MMP=%" I64F "d SBK=%" I64F "d TOT=%uK RAM=%uK SWP=%uK", - muval, total, mmapmem, sbrkmem, (unsigned)(virttot/1024), mu, su); + out.appendf("MU=%3u%% MAL=%" I64F "d MMP=%" I64F "d SBK=%" I64F "d TOT=%uK RAM=%uK SWP=%uK FLT=%" I64F "u CTX=%" I64F "u", + muval, total, mmapmem, sbrkmem, (unsigned)(virttot/1024), mu, su, processInfo.getMajorFaults(), processInfo.getNumContextSwitches()); #ifdef _USE_MALLOC_HOOK if (totalMem) out.appendf(" TM=%" I64F "d",totalMem);