DBQ
April 25th, 2011, 07:07 AM
Hi Everybody.
I am trying to measure the memory consumption of my C++ program. I am using VmPeak as my metric.
My problem is that I observed some strange memory patterns. When the main data structure of the program grows the biggest, the VmPeak is often lower then for the cases where the structure is significantly smaller. Why is that? Also, would you suggest a better metric for measuring memory usage of my program?
I am trying to measure the memory consumption of my C++ program. I am using VmPeak as my metric.
My problem is that I observed some strange memory patterns. When the main data structure of the program grows the biggest, the VmPeak is often lower then for the cases where the structure is significantly smaller. Why is that? Also, would you suggest a better metric for measuring memory usage of my program?