Valgrind 只安装特定工具?
我正在尝试将 valgrind 安装到内存有限的基于 QNX 的系统上。我想运行 memcheck 以查看我的代码库中是否存在内存泄漏。我在 https://valgrind.org/info/tools.html 上看到 valgrind 发行版附带了很多捆绑的工具,但我只想运行 memcheck。
有没有办法从 valgrind 安装特定的分析工具而不安装其余的?
I'm trying to install valgrind onto a QNX-based system with limited memory. I want to run memcheck to see if there are any memory leaks in my codebase. I saw on https://valgrind.org/info/tools.html that the valgrind distribution comes with a lot of tools bundled, but I only want to run memcheck.
Is there a way to install a specific profiling tool from valgrind without installing the rest?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有没有办法从 valgrind 安装特定的分析工具而不安装其余的?
答案:
据我所知,这是不可能的。
可能会尝试单独卸载其中的一些软件包。例如,在 Ubuni 中,它的工作方式类似于
sudo apt-get purge kcachegrind
检查没有整套工具的旧版本 Valgrind。
Is there a way to install a specific profiling tool from valgrind without installing the rest?
Answer:
AFAIK, it's not possible.
May be try to individually uninstall some of it's packages. For example, in Ubuni it works like
sudo apt-get purge kcachegrind
Check an old version (s) of Valgrind which does not have a whole suite of tools.
您的系统是否也非常缺乏存储空间?
Valgrind 不需要大量存储。 Linux AMD64 版本(包括 AMD64 和 x86)大约需要 250MBytes。
在运行时,不安装所有东西没有任何好处。 memcheck 将仅加载 memcheck 和核心库(由所有工具使用)。所有其他工具都不会加载到内存中。
Is your system also very short of storage space?
Valgrind doesn't require a huge amount of storage. It's about 250MBytes for a Linux AMD64 build (which includes both AMD64 and x86).
At runtime there is no benefit in not installing everything. memcheck will only load memcheck and the core library (used by all tools). All of the other tools will not be loaded into memory.