1 --------------------------------------------------------------------------------
3 Massif arguments
: --stacks
=no
--time
-unit
=B
--heap
-admin
=0 --threshold
=10 --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
--threshold
=10
5 --------------------------------------------------------------------------------
29 0 +----------------------------------------------------------------------->KB
32 Number of snapshots
: 10
33 Detailed snapshots
: [9]
35 --------------------------------------------------------------------------------
36 n time
(B
) total(B
) useful
-heap
(B
) extra
-heap
(B
) stacks
(B
)
37 --------------------------------------------------------------------------------
39 1 48,000 48,000 48,000 0 0
40 2 55,200 55,200 55,200 0 0
41 3 57,600 57,600 57,600 0 0
42 4 58,400 58,400 58,400 0 0
43 5 59,200 59,200 59,200 0 0
44 6 59,600 59,600 59,600 0 0
45 7 63,600 63,600 63,600 0 0
46 8 79,600 79,600 79,600 0 0
47 9 80,000 80,000 80,000 0 0
48 100.00% (80,000B
) (heap allocation functions
) malloc
/new
/new
[], --alloc
-fns
, etc.
49 ->66.50% (53,200B
) 0x........
: my_malloc1
(thresholds.c
:23)
50 |
->60.00% (48,000B
) 0x........
: a7550
(thresholds.c
:38)
51 | |
->60.00% (48,000B
) 0x........
: main
(thresholds.c
:52)
53 |
->06.50% (5,200B
) in
1+ places
, all below ms_print
's threshold (10.00%)
55 ->20.00% (16,000B) 0x........: main (thresholds.c:55)
57 ->13.00% (10,400B) 0x........: my_malloc2 (thresholds.c:28)
58 | ->13.00% (10,400B) in 3 places, all below massif's threshold
(10.00%)
60 ->00.50% (400B
) in
1+ places
, all below ms_print
's threshold (10.00%)