1--------------------------------------------------------------------------------
2Command:            ./realloc
3Massif arguments:   --stacks=no --heap-admin=0 --time-unit=B --threshold=0 --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: --threshold=0 massif.out
5--------------------------------------------------------------------------------
6
7
8    KB
91.172^                                    ###################################
10     |                                    #
11     |                                    #
12     |                                    #
13     |                                    #
14     |                                    #
15     |                                    #
16     |                        @:::::::::::#
17     |                        @           #
18     |                        @           #
19     |                        @           #
20     |                        @           #
21     |                        @           #
22     |                        @           #
23     |                        @           #
24     |                        @           #
25     |                        @           #
26     |                        @           #
27     |                        @           #
28     |                        @           #
29   0 +----------------------------------------------------------------------->KB
30     0                                                                   2.344
31
32Number of snapshots: 8
33 Detailed snapshots: [3, 6 (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            800              800              800             0            0
40  2            800              800              800             0            0
41  3            800              800              800             0            0
42100.00% (800B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
43->100.00% (800B) 0x........: main (realloc.c:8)
44|
45->00.00% (0B) 0x........: main (realloc.c:5)
46
47--------------------------------------------------------------------------------
48  n        time(B)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
49--------------------------------------------------------------------------------
50  4            800              800              400           400            0
51  5          1,200            1,200            1,200             0            0
52  6          1,200            1,200            1,200             0            0
53100.00% (1,200B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
54->100.00% (1,200B) 0x........: main (realloc.c:12)
55|
56->00.00% (0B) 0x........: main (realloc.c:5)
57|
58->00.00% (0B) 0x........: main (realloc.c:8)
59|
60->00.00% (0B) 0x........: main (realloc.c:10)
61
62--------------------------------------------------------------------------------
63  n        time(B)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
64--------------------------------------------------------------------------------
65  7          2,400                0                0             0            0
66