bruno nery
bruno nery

Reputation: 2052

How to profile shared memory?

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

Answers (1)

phd
phd

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

Related Questions