Updated examples to show timestamp output for each message
authorSasha Goldshtein <goldshtn@gmail.com>
Tue, 9 Feb 2016 19:18:32 +0000 (11:18 -0800)
committerSasha Goldshtein <goldshtn@gmail.com>
Tue, 9 Feb 2016 19:18:38 +0000 (11:18 -0800)
tools/memleak_examples.txt

index 1a11c0c..2f7dd74 100644 (file)
@@ -8,12 +8,12 @@ For example:
 
 # ./memleak.py -p $(pidof allocs)
 Attaching to malloc and free in pid 5193, Ctrl+C to quit.
-*** Outstanding allocations:
+[11:16:33] Top 2 stacks with outstanding allocations:
         80 bytes in 5 allocations from stack
                  main+0x6d [/home/vagrant/allocs] (400862) 
                  __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fd460ac2790) 
 
-*** Outstanding allocations:
+[11:16:34] Top 2 stacks with outstanding allocations:
         160 bytes in 10 allocations from stack
                  main+0x6d [/home/vagrant/allocs] (400862) 
                  __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fd460ac2790) 
@@ -34,7 +34,7 @@ prevalent. Use the -a switch:
 
 # ./memleak.py -p $(pidof allocs) -a
 Attaching to malloc and free in pid 5193, Ctrl+C to quit.
-*** Outstanding allocations:
+[11:16:33] Top 2 stacks with outstanding allocations:
         addr = 948cd0 size = 16
         addr = 948d10 size = 16
         addr = 948d30 size = 16
@@ -43,7 +43,7 @@ Attaching to malloc and free in pid 5193, Ctrl+C to quit.
                  main+0x6d [/home/vagrant/allocs] (400862) 
                  __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fd460ac2790) 
 
-*** Outstanding allocations:
+[11:16:34] Top 2 stacks with outstanding allocations:
         addr = 948d50 size = 16
         addr = 948cd0 size = 16
         addr = 948d10 size = 16
@@ -127,17 +127,17 @@ seconds, 3 times before quitting:
 
 # ./memleak.py -p $(pidof allocs) -s 10 5 3
 Attaching to malloc and free in pid 2614, Ctrl+C to quit.
-*** Outstanding allocations:
+[11:16:33] Top 2 stacks with outstanding allocations:
         16 bytes in 1 allocations from stack
                  main+0x6d [/home/vagrant/allocs] (400862) 
                  __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fdc11ce8790) 
 
-*** Outstanding allocations:
+[11:16:38] Top 2 stacks with outstanding allocations:
         16 bytes in 1 allocations from stack
                  main+0x6d [/home/vagrant/allocs] (400862) 
                  __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fdc11ce8790) 
 
-*** Outstanding allocations:
+[11:16:43] Top 2 stacks with outstanding allocations:
         32 bytes in 2 allocations from stack
                  main+0x6d [/home/vagrant/allocs] (400862) 
                  __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fdc11ce8790)