Reputation: 2052
I have a program that has a peak memory usage of 66MB that I'm trying to profile with Valgrind Massif. Unfortunately, Massif shows only 800KB of peak memory usage. On the other hand, top tells me that 65MB are shared memory. Is it possible to profile shared memory usage of a program in Linux?
Upvotes: 1
Views: 1529
Reputation: 586
At least with Valgrind 3.7.0, you have the below option which should give what you need: --pages-as-heap=no|yes profile memory at the page level [no]
Upvotes: 3