Valgrind 只安装特定工具?

发布于 2025-01-13 01:55:26 字数 276 浏览 2 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

婴鹅 2025-01-20 01:55:26

有没有办法从 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.

给我一枪 2025-01-20 01:55:26

您的系统是否也非常缺乏存储空间?

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文