From 828edb5044bcf4b5af661368cde229520a79b3a1 Mon Sep 17 00:00:00 2001 From: Sasha Goldshtein Date: Tue, 9 Feb 2016 11:18:32 -0800 Subject: [PATCH] Updated examples to show timestamp output for each message --- tools/memleak_examples.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/memleak_examples.txt b/tools/memleak_examples.txt index 1a11c0c..2f7dd74 100644 --- a/tools/memleak_examples.txt +++ b/tools/memleak_examples.txt @@ -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) -- 2.7.4