1 --------------------------------------------------------------------------------
2 Command
: .
/custom_alloc
3 Massif 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
4 ms_print arguments
: massif.out
5 --------------------------------------------------------------------------------
9 816^ ############
:::::::::::
29 0 +----------------------------------------------------------------------->KB
32 Number of snapshots
: 11
33 Detailed snapshots
: [2, 5 (peak
)]
35 --------------------------------------------------------------------------------
36 n time
(B
) total(B
) useful
-heap
(B
) extra
-heap
(B
) stacks
(B
)
37 --------------------------------------------------------------------------------
41 96.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)
45 --------------------------------------------------------------------------------
46 n time
(B
) total(B
) useful
-heap
(B
) extra
-heap
(B
) stacks
(B
)
47 --------------------------------------------------------------------------------
51 98.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)
55 ->00.00% (0B
) in
1+ places
, all below ms_print
's threshold (01.00%)
57 --------------------------------------------------------------------------------
58 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B)
59 --------------------------------------------------------------------------------