Skip to content

Commit

Permalink
Merge pull request #19166 from ghalliday/issue32750
Browse files Browse the repository at this point in the history
HPCC-32750 Add page faults and context switches to the periodic logging

Reviewed-by: Mark Kelly [email protected]
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Sep 30, 2024
2 parents d617f4e + c1dde94 commit 2c551a4
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 @@ -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);
Expand Down

0 comments on commit 2c551a4

Please sign in to comment.