-------------------------------------------------------------------------------- Command: ./custom_alloc Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out ms_print arguments: massif.out -------------------------------------------------------------------------------- B 208^ # : | # : | # : | # : | # : | # : | # : | # : | # : | # . : | @ # : : | @ # : : | @ # : : | @ # : : | @ # : : | @ # : : | @ # : : | @ # : : | @ # : : | @ # : : 0 +----------------------------------------------------------------------->KB 0 1.242 Number of snapshots: 11 Detailed snapshots: [2, 5 (peak)] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 1 108 108 100 8 0 2 108 108 100 8 0 92.59% (100B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->92.59% (100B) 0x........: custom_alloc (custom_alloc.c:41) ->92.59% (100B) 0x........: main (custom_alloc.c:60) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 3 216 0 0 0 0 4 424 208 200 8 0 5 424 208 200 8 0 96.15% (200B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->96.15% (200B) 0x........: custom_alloc (custom_alloc.c:41) ->96.15% (200B) 0x........: main (custom_alloc.c:63) | ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 6 632 0 0 0 0 7 744 112 100 12 0 8 856 0 0 0 0 9 1,064 208 200 8 0 10 1,272 0 0 0 0