testTester
testTester

Reputation: 2649

Can't run valgrind massif with "page-as-heap" option

I am trying to run Valgrind in Ubuntu 14.04 with the following options:

valgrind --tool=massif --pages-as-heap=yes

But get the following error:

valgrind: Bad option: --page-as-heap=yes

This option is described in several places (and it is actually mentioned in valgrind's manual http://valgrind.org/docs/manual/ms-manual.html) to be used with massif.

How can I have this tool/option avaliable?

Thanks

Upvotes: 0

Views: 596

Answers (1)

testTester
testTester

Reputation: 2649

Found the error. The correct command is:

valgrind --tool=massif --pages-as-heap=yes

Note the plural "pages".

Upvotes: 0

Related Questions