c++ - OSX Yosemite 上的 Valgrind callgrind

标签 c++ macos qt valgrind

我已经使用 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 Function Profiler

最佳答案

不完全是我想要的,但这对我有用:

$ sudo valgrind --tool=callgrind ./someapp

不确定我是否可以授予帐户特定权限。

关于c++ - OSX Yosemite 上的 Valgrind callgrind,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30894605/

相关文章:

c++ - 记录跨越多个文件的 namespace doxygen

python-3.x - 无法为使用 PEP 517 且无法直接安装的 numpy 构建轮子

php - OSX - Composer - lib-openssl 要求

c++ - 在 aux 方法中创建的 QWidget 不显示/绘制

c++ - 如何从路径加载 QImage?

c++ - Boost ASIO和串行端口异步读取

c++ - 带反斜杠的 QSqlQuery

c++ - boost::asio::ip::tcp::socket::cancel 和 socket::close 之间有什么不同

c++ - 对于 Mac 上的高带宽数据流,最有效的进程间通信方法是什么?

android NDK fatal error : stdio. h : No such file or directory #include <stdio. h>