Skip to content

Commit

Permalink
HPCC-32750 Add page faults and context switches to the periodic logging
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Sep 30, 2024
1 parent 23d655e commit 36a06a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/jlib/jdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,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);
Expand Down

0 comments on commit 36a06a2

Please sign in to comment.