1 -------------------------------------------------------------------------------- 2 Command: ./big-alloc 3 Massif arguments: --stacks=no --time-unit=B --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 -------------------------------------------------------------------------------- 6 7 8 MB 9 100.0^ : 10 | : 11 | @@@@@@@: 12 | @ : 13 | :::::::@ : 14 | : @ : 15 | :::::::: @ : 16 | : : @ : 17 | :::::::: : @ : 18 | : : : @ : 19 | :::::::: : : @ : 20 | : : : : @ : 21 | ::::::::: : : : @ : 22 | : : : : : @ : 23 | :::::::: : : : : @ : 24 | : : : : : : @ : 25 | :::::::: : : : : : @ : 26 | : : : : : : : @ : 27 | :::::::: : : : : : : @ : 28 | : : : : : : : : @ : 29 0 +----------------------------------------------------------------------->MB 30 0 100.0 31 32 Number of snapshots: 11 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 10,489,800 10,489,800 10,485,760 4,040 0 40 2 20,979,600 20,979,600 20,971,520 8,080 0 41 3 31,469,400 31,469,400 31,457,280 12,120 0 42 4 41,959,200 41,959,200 41,943,040 16,160 0 43 5 52,449,000 52,449,000 52,428,800 20,200 0 44 6 62,938,800 62,938,800 62,914,560 24,240 0 45 7 73,428,600 73,428,600 73,400,320 28,280 0 46 8 83,918,400 83,918,400 83,886,080 32,320 0 47 9 94,408,200 94,408,200 94,371,840 36,360 0 48 99.96% (94,371,840B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 49 ->99.96% (94,371,840B) 0x........: main (big-alloc.c:12) 50 51 -------------------------------------------------------------------------------- 52 n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) 53 -------------------------------------------------------------------------------- 54 10 104,898,000 104,898,000 104,857,600 40,400 0 55