Commit 828edb50 authored by Sasha Goldshtein's avatar Sasha Goldshtein

Updated examples to show timestamp output for each message

parent c8148c88
...@@ -8,12 +8,12 @@ For example: ...@@ -8,12 +8,12 @@ For example:
# ./memleak.py -p $(pidof allocs) # ./memleak.py -p $(pidof allocs)
Attaching to malloc and free in pid 5193, Ctrl+C to quit. 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 80 bytes in 5 allocations from stack
main+0x6d [/home/vagrant/allocs] (400862) main+0x6d [/home/vagrant/allocs] (400862)
__libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fd460ac2790) __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 160 bytes in 10 allocations from stack
main+0x6d [/home/vagrant/allocs] (400862) main+0x6d [/home/vagrant/allocs] (400862)
__libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fd460ac2790) __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fd460ac2790)
...@@ -34,7 +34,7 @@ prevalent. Use the -a switch: ...@@ -34,7 +34,7 @@ prevalent. Use the -a switch:
# ./memleak.py -p $(pidof allocs) -a # ./memleak.py -p $(pidof allocs) -a
Attaching to malloc and free in pid 5193, Ctrl+C to quit. 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 = 948cd0 size = 16
addr = 948d10 size = 16 addr = 948d10 size = 16
addr = 948d30 size = 16 addr = 948d30 size = 16
...@@ -43,7 +43,7 @@ Attaching to malloc and free in pid 5193, Ctrl+C to quit. ...@@ -43,7 +43,7 @@ Attaching to malloc and free in pid 5193, Ctrl+C to quit.
main+0x6d [/home/vagrant/allocs] (400862) main+0x6d [/home/vagrant/allocs] (400862)
__libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fd460ac2790) __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 = 948d50 size = 16
addr = 948cd0 size = 16 addr = 948cd0 size = 16
addr = 948d10 size = 16 addr = 948d10 size = 16
...@@ -127,17 +127,17 @@ seconds, 3 times before quitting: ...@@ -127,17 +127,17 @@ seconds, 3 times before quitting:
# ./memleak.py -p $(pidof allocs) -s 10 5 3 # ./memleak.py -p $(pidof allocs) -s 10 5 3
Attaching to malloc and free in pid 2614, Ctrl+C to quit. 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 16 bytes in 1 allocations from stack
main+0x6d [/home/vagrant/allocs] (400862) main+0x6d [/home/vagrant/allocs] (400862)
__libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fdc11ce8790) __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 16 bytes in 1 allocations from stack
main+0x6d [/home/vagrant/allocs] (400862) main+0x6d [/home/vagrant/allocs] (400862)
__libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fdc11ce8790) __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 32 bytes in 2 allocations from stack
main+0x6d [/home/vagrant/allocs] (400862) main+0x6d [/home/vagrant/allocs] (400862)
__libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fdc11ce8790) __libc_start_main+0xf0 [/usr/lib64/libc-2.21.so] (7fdc11ce8790)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment