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.6^ : 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.6 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,551,240 10,551,240 10,485,760 65,480 0 40 2 21,102,480 21,102,480 20,971,520 130,960 0 41 3 31,653,720 31,653,720 31,457,280 196,440 0 42 4 42,204,960 42,204,960 41,943,040 261,920 0 43 5 52,756,200 52,756,200 52,428,800 327,400 0 44 6 63,307,440 63,307,440 62,914,560 392,880 0 45 7 73,858,680 73,858,680 73,400,320 458,360 0 46 8 84,409,920 84,409,920 83,886,080 523,840 0 47 9 94,961,160 94,961,160 94,371,840 589,320 0 48 99.38% (94,371,840B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. 49 ->99.38% (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 105,512,400 105,512,400 104,857,600 654,800 0 55