1-------------------------------------------------------------------------------- 2Command: ./alloc-fns 3Massif arguments: --stacks=no --time-unit=B --heap-admin=0 --alloc-fn=a4 --alloc-fn=b4 --alloc-fn=b3 --alloc-fn=c4 --alloc-fn=c3 --alloc-fn=c2 --alloc-fn=d4 --alloc-fn=d3 --alloc-fn=d2 --alloc-fn=d1 --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element 4ms_print arguments: massif.out 5-------------------------------------------------------------------------------- 6 7 8 KB 93.516^ @ 10 | @ 11 | @ 12 | :::::::@ 13 | : @ 14 | ::::::::: @ 15 | : : @ 16 | ::::::::: : @ 17 | : : : @ 18 | ::::::::: : : @ 19 | : : : : @ 20 | : : : : @ 21 | ::::::::: : : : @ 22 | : : : : : @ 23 | ::::::::: : : : : @ 24 | : : : : : : @ 25 | ::::::::: : : : : : @ 26 | : : : : : : : @ 27 | ::::::::: : : : : : : @ 28 | : : : : : : : : @ 29 0 +----------------------------------------------------------------------->KB 30 0 3.516 31 32Number of snapshots: 10 33 Detailed snapshots: [9] 34 35-------------------------------------------------------------------------------- 36 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 37-------------------------------------------------------------------------------- 38 0 0 0 0 0 0 39 1 400 400 400 0 0 40 2 800 800 800 0 0 41 3 1,200 1,200 1,200 0 0 42 4 1,600 1,600 1,600 0 0 43 5 2,000 2,000 2,000 0 0 44 6 2,400 2,400 2,400 0 0 45 7 2,800 2,800 2,800 0 0 46 8 3,200 3,200 3,200 0 0 47 9 3,600 3,600 3,600 0 0 48100.00% (3,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 49->33.33% (1,200B) 0x........: a3 (alloc-fns.c:4) 50| ->33.33% (1,200B) 0x........: a2 (alloc-fns.c:5) 51| ->33.33% (1,200B) 0x........: a1 (alloc-fns.c:6) 52| ->11.11% (400B) 0x........: main (alloc-fns.c:25) 53| | 54| ->11.11% (400B) 0x........: main (alloc-fns.c:26) 55| | 56| ->11.11% (400B) 0x........: main (alloc-fns.c:27) 57| 58->11.11% (400B) 0x........: c1 (alloc-fns.c:16) 59| ->11.11% (400B) 0x........: main (alloc-fns.c:29) 60| 61->11.11% (400B) 0x........: main (alloc-fns.c:30) 62| 63->11.11% (400B) 0x........: main (alloc-fns.c:31) 64| 65->11.11% (400B) 0x........: main (alloc-fns.c:32) 66| 67->11.11% (400B) 0x........: main (alloc-fns.c:33) 68| 69->11.11% (400B) 0x........: b2 (alloc-fns.c:10) 70 ->11.11% (400B) 0x........: b1 (alloc-fns.c:11) 71 ->11.11% (400B) 0x........: main (alloc-fns.c:28) 72 73