1 --------------------------------------------------------------------------------
3 Massif arguments
: --stacks
=no
--time
-unit
=B
--heap
-admin
=128 --massif
-out
-file
=massif.out
--threshold
=0.99 --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
--alloc
-fn
=_xpc_malloc
--ignore
-fn
=_xpc_dictionary_insert
--ignore
-fn
=map_images_nolock
--ignore
-fn
=allocBuckets
(void
*, unsigned
int) --ignore
-fn
=realizeClass
(objc_class
*) --ignore
-fn
=_NXHashRehashToCapacity
--ignore
-fn
=NXCreateHashTableFromZone
--ignore
-fn
=NXCreateMapTableFromZone
--ignore
-fn
=NXHashInsert
--ignore
-fn
=add_class_to_loadable_list
--ignore
-fn
=class_createInstance
--ignore
-fn
=xpc_string_create
--alloc
-fn
=strdup
--alloc
-fn
=_xpc_calloc
--ignore
-fn
=xpc_array_create
4 ms_print arguments
: massif.out
5 --------------------------------------------------------------------------------
29 0 +----------------------------------------------------------------------->KB
32 Number of snapshots
: 24
33 Detailed snapshots
: [9, 19]
35 --------------------------------------------------------------------------------
36 n time
(B
) total(B
) useful
-heap
(B
) extra
-heap
(B
) stacks
(B
)
37 --------------------------------------------------------------------------------
39 1 16,128 16,128 16,000 128 0
40 2 16,496 16,496 16,240 256 0
41 3 16,816 16,816 16,432 384 0
42 4 16,960 16,960 16,448 512 0
43 5 17,104 17,104 16,464 640 0
44 6 17,248 17,248 16,480 768 0
45 7 17,392 17,392 16,496 896 0
46 8 17,536 17,536 16,512 1,024 0
47 9 17,680 17,680 16,528 1,152 0
48 93.48% (16,528B
) (heap allocation functions
) malloc
/new
/new
[], --alloc
-fns
, etc.
49 ->90.50% (16,000B
) 0x........
: main
(insig.c
:8)
51 ->01.36% (240B
) 0x........
: main
(insig.c
:9)
53 ->01.09% (192B
) 0x........
: main
(insig.c
:10)
55 ->00.54% (96B
) 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 --------------------------------------------------------------------------------
60 10 17,824 17,824 16,544 1,280 0
61 11 17,968 17,968 16,560 1,408 0
62 12 18,112 18,112 16,576 1,536 0
63 13 18,256 18,256 16,592 1,664 0
64 14 18,400 18,400 16,608 1,792 0
65 15 18,544 18,544 16,624 1,920 0
66 16 18,688 18,688 16,640 2,048 0
67 17 18,832 18,832 16,656 2,176 0
68 18 18,976 18,976 16,672 2,304 0
69 19 19,120 19,120 16,688 2,432 0
70 87.28% (16,688B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
71 ->83.68% (16,000B) 0x........: main (insig.c:8)
73 ->01.34% (256B) in 16 places, all below massif's threshold
(0.99%)
75 ->01.26% (240B
) 0x........
: main
(insig.c
:9)
77 ->01.00% (192B
) 0x........
: main
(insig.c
:10)
79 --------------------------------------------------------------------------------
80 n time
(B
) total(B
) useful
-heap
(B
) extra
-heap
(B
) stacks
(B
)
81 --------------------------------------------------------------------------------
82 20 19,264 19,264 16,704 2,560 0
83 21 19,408 19,408 16,720 2,688 0
84 22 19,552 19,552 16,736 2,816 0
85 23 19,696 19,696 16,752 2,944 0