1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
| $ ms_print massif.out.51774 -------------------------------------------------------------------------------- Command: ./test Massif arguments: (none) ms_print arguments: massif.out.51774 --------------------------------------------------------------------------------
KB 19.71^ # | # | # | # | # | # | # | # | # | # | # | # | # | # | # | # | # | # | # | # 0 +----------------------------------------------------------------------->ki 0 151.7
Number of snapshots: 25 Detailed snapshots: [9, 14 (peak), 24]
-------------------------------------------------------------------------------- n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 1 154,422 1,016 1,000 16 0 2 154,466 2,032 2,000 32 0 3 154,510 3,048 3,000 48 0 4 154,554 4,064 4,000 64 0 5 154,598 5,080 5,000 80 0 6 154,642 6,096 6,000 96 0 7 154,686 7,112 7,000 112 0 8 154,730 8,128 8,000 128 0 9 154,774 9,144 9,000 144 0 98.43% (9,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->98.43% (9,000B) 0x1091E5: main (test.c:20)
-------------------------------------------------------------------------------- n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 10 154,818 10,160 10,000 160 0 11 154,866 12,168 12,000 168 0 12 154,907 16,176 16,000 176 0 13 154,954 20,184 20,000 184 0 14 155,000 20,184 20,000 184 0 99.09% (20,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->49.54% (10,000B) 0x1091E5: main (test.c:20) | ->39.64% (8,000B) 0x10919A: g (test.c:5) | ->19.82% (4,000B) 0x1091B4: f (test.c:11) | | ->19.82% (4,000B) 0x109201: main (test.c:23) | | | ->19.82% (4,000B) 0x109206: main (test.c:25) | ->09.91% (2,000B) 0x1091AF: f (test.c:10) ->09.91% (2,000B) 0x109201: main (test.c:23)
-------------------------------------------------------------------------------- n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 15 155,000 19,168 19,000 168 0 16 155,036 18,152 18,000 152 0 17 155,072 17,136 17,000 136 0 18 155,108 16,120 16,000 120 0 19 155,144 15,104 15,000 104 0 20 155,180 14,088 14,000 88 0 21 155,216 13,072 13,000 72 0 22 155,252 12,056 12,000 56 0 23 155,288 11,040 11,000 40 0 24 155,324 10,024 10,000 24 0 99.76% (10,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->79.81% (8,000B) 0x10919A: g (test.c:5) | ->39.90% (4,000B) 0x1091B4: f (test.c:11) | | ->39.90% (4,000B) 0x109201: main (test.c:23) | | | ->39.90% (4,000B) 0x109206: main (test.c:25) | ->19.95% (2,000B) 0x1091AF: f (test.c:10) | ->19.95% (2,000B) 0x109201: main (test.c:23) | ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
|