From 08e6619d376b33e7956742200e77014174890c9f Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Fri, 23 Jul 2010 17:45:51 +0300 Subject: [PATCH] analyzer: print_pid_stats: Add column for total mem usage Signed-off-by: Timo Kokkonen --- analyze.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/analyze.c b/analyze.c index 3f30824..67acb2f 100644 --- a/analyze.c +++ b/analyze.c @@ -112,7 +112,7 @@ void print_pid_stats(struct pageframe *pf, struct process *process_list, biggest = MAX(biggest, ps->pages_present + ps->pages_swapped); } - printf(" in ram swapped pid"); + printf(" in ram swapped total pid"); if (opts->with_threads) printf(" tid"); printf(" name\n"); @@ -136,9 +136,10 @@ restart: if (total == 0) continue; - printf("%6lld %sB %6lld %sB %5d ", + printf("%6lld %sB %6lld %sB %6lld %sB %5d ", PAGE_TO_NICE(present), PAGE_TO_NICE_UNIT(present), PAGE_TO_NICE(swapped), PAGE_TO_NICE_UNIT(swapped), + PAGE_TO_NICE(total), PAGE_TO_NICE_UNIT(total), ps->pid); if (opts->with_threads) -- 2.45.0