0

I am tracing how much memory an object is using. I have simple program which simply instantiate the object and the delete it.

If I look at the output of massif or if I look at the virtual memory from top I get completely different result. Do you have any ideas? When I use top I've simply added a cin >> a just to pause the program.

Ruggero Turra
  • 16,929
  • 16
  • 85
  • 141

1 Answers1

0

massif measures how much heap you're using, but top command shows whole memory allocation for the computer, not for only you program's heap

Iłya Bursov
  • 23,342
  • 4
  • 33
  • 57