Valgrind callgrind on OSX Yosemite

1.6k Views Asked by At

I've installed valgrind on OSX Yosemite using brew install --HEAD valgrind and also build as per question Yosemite and Valgrind.

For now I have:

$ valgrind --version
valgrind-3.11.0.SVN

When I'm running memory leak checks it seems to run fine:

$ valgrind --leak-check=full --dsymutil=yes ./someapp
..

But when I'm trying to profile function calls I get:

$ valgrind --tool=callgrind ./someapp
valgrind: Unknown option: --leak-check=full
valgrind: Use --help for more information or consult the user manual.

My objective is to run Valgrind Function Profiler in Qt Creator 3.3.2 with Qt 5.4.1 Clang 6.0 64-bit

1

There are 1 best solutions below

0
On

Not exactly what I wanted but this worked for me:

$ sudo valgrind --tool=callgrind ./someapp

Not sure if I can give specific rights to account.