Skip to content

Commit

Permalink
improved memory process monitor to also print a total
Browse files Browse the repository at this point in the history
  • Loading branch information
dvojtise committed Sep 23, 2024
1 parent 7ca23e7 commit 5bd6be5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ def printAllMax(procs):
for p in procs:
printProc(p['proc'])
total_uss = 0
total_pss = 0
total_rss = 0
for p in procs:
total_uss += p['proc']._uss
print( "TOTAL USS = " + convert_bytes(total_uss))
total_pss += p['proc']._pss
total_rss += p['proc']._rss
print( "TOTAL: USS = " + convert_bytes(total_uss) + " PSS = " +convert_bytes(total_pss) + " RSS = " +convert_bytes(total_rss) )

def main():
ad_pids = []
Expand Down

0 comments on commit 5bd6be5

Please sign in to comment.