简体   繁体   中英

Valgrind callgrind on OSX Yosemite

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM