1--------------------------------------------------------------------------------
2Command:            ./custom_alloc
3Massif arguments:   --stacks=no --time-unit=B --heap-admin=16 --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     B
9  816^                        ############                        :::::::::::
10     |                        #                                   :
11     |                        #                                   :
12     |                        #                                   :
13     |                        #                                   :
14     |                        #                                   :
15     |                        #                                   :
16     |                        #                                   :
17     |                        #                                   :
18     |                        #                                   :
19     |      @@@@@@            #                 ::::::            :
20     |      @                 #                 :                 :
21     |      @                 #                 :                 :
22     |      @                 #                 :                 :
23     |      @                 #                 :                 :
24     |      @                 #                 :                 :
25     |      @                 #                 :                 :
26     |      @                 #                 :                 :
27     |      @                 #                 :                 :
28     |      @                 #                 :                 :
29   0 +----------------------------------------------------------------------->KB
30     0                                                                   4.812
31
32Number of snapshots: 11
33 Detailed snapshots: [2, 5 (peak)]
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            416              416              400            16            0
40  2            416              416              400            16            0
4196.15% (400B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
42->96.15% (400B) 0x........: custom_alloc (custom_alloc.c:41)
43  ->96.15% (400B) 0x........: main (custom_alloc.c:60)
44
45--------------------------------------------------------------------------------
46  n        time(B)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
47--------------------------------------------------------------------------------
48  3            832                0                0             0            0
49  4          1,648              816              800            16            0
50  5          1,648              816              800            16            0
5198.04% (800B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
52->98.04% (800B) 0x........: custom_alloc (custom_alloc.c:41)
53  ->98.04% (800B) 0x........: main (custom_alloc.c:63)
54  |
55  ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
56
57--------------------------------------------------------------------------------
58  n        time(B)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
59--------------------------------------------------------------------------------
60  6          2,464                0                0             0            0
61  7          2,880              416              400            16            0
62  8          3,296                0                0             0            0
63  9          4,112              816              800            16            0
64 10          4,928                0                0             0            0
65