valgrind 附加包有什么作用?

What do valgrind additional packages do?

当我安装 valgrind 时,它建议安装以下软件包:

valgrind-dbg valgrind-mpi kcachegrind alleyoop 女武神

谁能用简单的英语解释一下它们各自的用途?

我假设您是 运行 debian 或基于 debian 的发行版,例如 ubuntu,因此快速访问 debian 软件包存档将为我们提供有关这些软件包的一些基本信息。

总而言之,其中大部分是帮助处理 valgrind 输出的工具。

  • valgrind-dbg contains the debug symbols for valgrind. Useful to pinpoint a problem with valgrind itself in the case it crashes. Check debian documentation for more details. Also this answer 可能会有用。
  • valgrind-mpi 是使用 MPI api 的 profiling/debugging 应用程序的辅助库。如果您的应用程序不使用它,它可能与您无关。
  • valkyrie是一个图形工具,用于解析分析memcheck的输出(valgrind是由几个工具组成的,memcheck是其中之一)。它将显示 memcheck 检测到的内存错误以及生成它们的代码。
  • alleyoop 似乎做与 valkyrie 相同的事情,但具有不同的基于 GNOME 的界面。
  • kcachegrind 是一个图形工具,用于解析和可视化 callgrind 工具的输出,这是 valgrind 套件的另一个工具。

可能还有其他图形工具用于解析各种格式的 valgrind 输出,这些只是 apt 建议安装的工具。