1 -------------------------------------------------------------------------------- 2 Command: ./basic 3 Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out --detailed-freq=1 --max-snapshots=10 --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 4 ms_print arguments: massif.out 5 -------------------------------------------------------------------------------- 6 7 8 KB 9 14.34^ ######## 10 | # 11 | # 12 | # 13 | # 14 | @@@@@@@@@@# @@@@@@@@@ 15 | @ # @ 16 | @ # @ 17 | @ # @ 18 | @ # @ @@@@@@@@ 19 | @@@@@@@@@ # @ @ 20 | @ @ # @ @ 21 | @ @ # @ @ 22 | @ @ # @ @ 23 | @ @ # @ @ @@@@@@@@ 24 | @@@@@@@@@@@@ @ # @ @ @ 25 | @ @ @ # @ @ @ 26 | @ @ @ # @ @ @ 27 | @ @ @ # @ @ @ @ 28 | @ @ @ # @ @ @ @ 29 0 +----------------------------------------------------------------------->KB 30 0 27.09 31 32 Number of snapshots: 9 33 Detailed snapshots: [0, 1, 2, 3, 4 (peak), 5, 6, 7, 8] 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 00.00% (0B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 40 41 -------------------------------------------------------------------------------- 42 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 43 -------------------------------------------------------------------------------- 44 1 3,672 3,672 3,600 72 0 45 98.04% (3,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 46 ->98.04% (3,600B) 0x........: main (basic.c:14) 47 48 -------------------------------------------------------------------------------- 49 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 50 -------------------------------------------------------------------------------- 51 2 7,752 7,752 7,600 152 0 52 98.04% (7,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 53 ->98.04% (7,600B) 0x........: main (basic.c:14) 54 55 -------------------------------------------------------------------------------- 56 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 57 -------------------------------------------------------------------------------- 58 3 11,016 11,016 10,800 216 0 59 98.04% (10,800B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 60 ->98.04% (10,800B) 0x........: main (basic.c:14) 61 62 -------------------------------------------------------------------------------- 63 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 64 -------------------------------------------------------------------------------- 65 4 14,688 14,688 14,400 288 0 66 98.04% (14,400B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 67 ->98.04% (14,400B) 0x........: main (basic.c:14) 68 69 -------------------------------------------------------------------------------- 70 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 71 -------------------------------------------------------------------------------- 72 5 17,952 11,424 11,200 224 0 73 98.04% (11,200B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 74 ->98.04% (11,200B) 0x........: main (basic.c:14) 75 76 -------------------------------------------------------------------------------- 77 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 78 -------------------------------------------------------------------------------- 79 6 21,216 8,160 8,000 160 0 80 98.04% (8,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 81 ->98.04% (8,000B) 0x........: main (basic.c:14) 82 83 -------------------------------------------------------------------------------- 84 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 85 -------------------------------------------------------------------------------- 86 7 24,480 4,896 4,800 96 0 87 98.04% (4,800B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 88 ->98.04% (4,800B) 0x........: main (basic.c:14) 89 90 -------------------------------------------------------------------------------- 91 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 92 -------------------------------------------------------------------------------- 93 8 27,744 1,632 1,600 32 0 94 98.04% (1,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 95 ->98.04% (1,600B) 0x........: main (basic.c:14) 96 97