我已经使用brew install --HEAD valgrind在OSX Yosemite上安装了valgrind,并且还根据问题Yosemite and Valgrind进行了构建。
到目前为止,我有:
$ valgrind --version
valgrind-3.11.0.SVN当我运行内存泄漏检查时,它似乎运行得很好:
$ valgrind --leak-check=full --dsymutil=yes ./someapp
..但是当我尝试分析函数调用时,我得到了:
$ valgrind --tool=callgrind ./someapp
valgrind: Unknown option: --leak-check=full
valgrind: Use --help for more information or consult the user manual.我的目标是在Qt Creator 3.3.2和Qt 5.4.1 Clang 6.0 64位中运行Valgrind函数分析器
发布于 2015-06-21 18:56:06
这不完全是我想要的,但这对我很有效:
$ sudo valgrind --tool=callgrind ./someapp不确定是否可以为帐户提供特定权限。
https://stackoverflow.com/questions/30894605
复制相似问题