-------------------------------------------------------------------------------- Command: ./vectorResize Massif arguments: --time-unit=B --stacks=yes --massif-out-file=vectorResize.massif.out ms_print arguments: vectorResize.massif.out -------------------------------------------------------------------------------- KB 391.1^ # | #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: | #::: ::: :::::: ::: :: : :::::::: :::: ::: ::: : :: : ::::::@::: 0 +----------------------------------------------------------------------->MB 0 15.80 Number of snapshots: 58 Detailed snapshots: [5 (peak), 53] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 1 444,136 1,888 0 0 1,888 2 876,956 1,516 0 0 1,516 3 1,153,592 952 0 0 952 4 1,329,500 364 0 0 364 5 1,738,948 400,436 400,000 8 428 99.89% (400,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->99.89% (400,000B) 0x8048E00: __gnu_cxx::new_allocator::allocate(unsigned int, void const*) (new_allocator.h:88) ->99.89% (400,000B) 0x8048E24: std::_Vector_base >::_M_allocate(unsigned int) (stl_vector.h:127) ->99.89% (400,000B) 0x804921E: int* std::vector >::_M_allocate_and_copy(unsigned int, int*, int*) (stl_vector.h:767) ->99.89% (400,000B) 0x80492DF: std::vector >::reserve(unsigned int) (vector.tcc:78) ->99.89% (400,000B) 0x804897F: main (vectorResize.cpp:17) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 6 2,051,252 400,236 400,000 8 228 7 2,269,052 400,300 400,000 8 292 8 2,521,052 400,300 400,000 8 292 9 2,799,152 400,264 400,000 8 256 10 3,102,912 400,264 400,000 8 256 11 3,421,052 400,300 400,000 8 292 12 3,816,152 400,272 400,000 8 264 13 4,026,312 400,272 400,000 8 264 14 4,265,712 400,264 400,000 8 256 15 4,515,452 400,300 400,000 8 292 16 4,770,152 400,272 400,000 8 264 17 5,043,752 400,272 400,000 8 264 18 5,341,652 400,236 400,000 8 228 19 5,644,952 400,272 400,000 8 264 20 5,953,652 400,236 400,000 8 228 21 6,290,712 400,272 400,000 8 264 22 6,661,512 400,272 400,000 8 264 23 7,050,752 400,264 400,000 8 256 24 7,462,052 400,236 400,000 8 228 25 7,679,412 400,300 400,000 8 292 26 7,918,352 400,264 400,000 8 256 27 8,163,612 400,236 400,000 8 228 28 8,411,112 400,272 400,000 8 264 29 8,660,412 400,236 400,000 8 228 30 8,911,952 400,264 400,000 8 256 31 9,166,212 400,300 400,000 8 292 32 9,439,352 400,272 400,000 8 264 33 9,715,652 400,236 400,000 8 228 34 9,993,312 400,264 400,000 8 256 35 10,290,752 400,264 400,000 8 256 36 10,593,612 400,236 400,000 8 228 37 10,897,352 400,272 400,000 8 264 38 11,205,612 400,236 400,000 8 228 39 11,517,912 400,272 400,000 8 264 40 11,835,612 400,236 400,000 8 228 41 12,172,652 400,300 400,000 8 292 42 12,543,012 400,300 400,000 8 292 43 12,931,812 400,300 400,000 8 292 44 13,326,452 400,236 400,000 8 228 45 13,735,512 400,272 400,000 8 264 46 14,168,064 400,296 400,000 8 288 47 14,395,728 400,296 400,000 8 288 48 14,623,392 400,296 400,000 8 288 49 14,896,592 400,264 400,000 8 256 50 15,072,512 400,296 400,000 8 288 51 15,248,420 400,236 400,000 8 228 52 15,424,344 400,272 400,000 8 264 53 15,600,272 400,296 400,000 8 288 99.93% (400,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. ->99.93% (400,000B) 0x8048E00: __gnu_cxx::new_allocator::allocate(unsigned int, void const*) (new_allocator.h:88) ->99.93% (400,000B) 0x8048E24: std::_Vector_base >::_M_allocate(unsigned int) (stl_vector.h:127) ->99.93% (400,000B) 0x804921E: int* std::vector >::_M_allocate_and_copy(unsigned int, int*, int*) (stl_vector.h:767) ->99.93% (400,000B) 0x80492DF: std::vector >::reserve(unsigned int) (vector.tcc:78) ->99.93% (400,000B) 0x804897F: main (vectorResize.cpp:17) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 54 15,776,180 400,236 400,000 8 228 55 15,952,104 400,272 400,000 8 264 56 16,128,032 400,296 400,000 8 288 57 16,569,444 404 0 0 404