1--------------------------------------------------------------------------------
2Command:            ./alloc-fns
3Massif arguments:   --stacks=no --time-unit=B --heap-admin=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: 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->44.44% (1,600B) 0x........: d4 (alloc-fns.c:18)
50| ->33.33% (1,200B) 0x........: d3 (alloc-fns.c:19)
51| | ->22.22% (800B) 0x........: d2 (alloc-fns.c:20)
52| | | ->11.11% (400B) 0x........: d1 (alloc-fns.c:21)
53| | | | ->11.11% (400B) 0x........: main (alloc-fns.c:30)
54| | | |
55| | | ->11.11% (400B) 0x........: main (alloc-fns.c:31)
56| | |
57| | ->11.11% (400B) 0x........: main (alloc-fns.c:32)
58| |
59| ->11.11% (400B) 0x........: main (alloc-fns.c:33)
60|
61->33.33% (1,200B) 0x........: a4 (alloc-fns.c:3)
62| ->33.33% (1,200B) 0x........: a3 (alloc-fns.c:4)
63|   ->33.33% (1,200B) 0x........: a2 (alloc-fns.c:5)
64|     ->33.33% (1,200B) 0x........: a1 (alloc-fns.c:6)
65|       ->11.11% (400B) 0x........: main (alloc-fns.c:25)
66|       |
67|       ->11.11% (400B) 0x........: main (alloc-fns.c:26)
68|       |
69|       ->11.11% (400B) 0x........: main (alloc-fns.c:27)
70|
71->11.11% (400B) 0x........: b4 (alloc-fns.c:8)
72| ->11.11% (400B) 0x........: b3 (alloc-fns.c:9)
73|   ->11.11% (400B) 0x........: b2 (alloc-fns.c:10)
74|     ->11.11% (400B) 0x........: b1 (alloc-fns.c:11)
75|       ->11.11% (400B) 0x........: main (alloc-fns.c:28)
76|
77->11.11% (400B) 0x........: c4 (alloc-fns.c:13)
78  ->11.11% (400B) 0x........: c3 (alloc-fns.c:14)
79    ->11.11% (400B) 0x........: c2 (alloc-fns.c:15)
80      ->11.11% (400B) 0x........: c1 (alloc-fns.c:16)
81        ->11.11% (400B) 0x........: main (alloc-fns.c:29)
82
83