]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - analyze.c
Add support for parsing all threads, not just thead parents
[scan-pagemap] / analyze.c
index 7dc2859772bf11a1397dc0d93f7c8274b5d83993..a56f94d60f9c30c3dca72ab95eae03361f6984ce 100644 (file)
--- a/analyze.c
+++ b/analyze.c
@@ -114,7 +114,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 name\n");
+       printf("   in ram   swapped   pid   tid name\n");
 
 restart:
        second_biggest = 0;
@@ -135,10 +135,10 @@ restart:
                if (total == 0)
                        continue;
 
-               printf("%6lld %sB %6lld %sB %5d %s\n",
+               printf("%6lld %sB %6lld %sB %5d %5d %s\n",
                        PAGE_TO_NICE(present), PAGE_TO_NICE_UNIT(present),
                        PAGE_TO_NICE(swapped), PAGE_TO_NICE_UNIT(swapped),
-                       ps->pid, ps->name);
+                       ps->pid, ps->tid,ps->name);
                count++;
                processes++;
        }