寻找多平台内存泄漏检测程序

发布于 2024-08-09 12:53:50 字数 334 浏览 2 评论 0原文

好吧,我有一个学校作业,主要是选择 3 个内存泄漏检测程序,并在老师提供给我们的一堆 C++ 程序上运行它们,看看它们之间的比较。这 3 个程序必须是多平台的,这就是我陷入困境的地方。我只能找到一个名为 valgrind 的软件,它可以在 MAC OSX 和 Linux 上运行。有人知道其他几个吗?我发现的几乎所有东西似乎都只适用于一种操作系统,否则我就必须付费。我不必在每个操作系统上实际运行它们,他们只需要有一个可以在另一个操作系统上运行的版本。任何帮助将不胜感激。

编辑:结果我完全误解了我的任务,我只需要说 1 用于 Linux 和 2 用于 Windows。基本上我不能在一个操作系统上拥有所有 3 个。这让事情变得容易多了。

Ok I have a school assignment to basically pick 3 memory leak detecting programs and run them on a bunch of c++ programs that the teacher supplies us and see how they compare to each other. These 3 programs have to be multi-platform and this is where I'm stuck. I have only been able to find one called valgrind which works on both MAC OSX and Linux. Does anybody know of a few others? Almost everything I find seems to be for only one OS or I have to pay for it. I don't have to actually run them on each OS they just have to have a version that will run on another OS. Any help would be appreciated.

EDIT: Turns out I completely misunderstood my assignment and that I just have to have like say 1 for linux and 2 for windows. Basically I can't have all 3 for one OS. This makes things a heck of a lot easier.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

七分※倦醒 2024-08-16 12:53:50

由于泄漏检测程序使用注入到代码中的特定于操作系统的检测代码,因此没有很多多平台解决方案,因为每个操作系统都有自己的内存管理功能。

我曾经使用边界检查器、AQTime(更现代),但它们都运行在基于 Windows 的软件上。
如果您的代码是纯 C++,那么您可以将其移植到 MS 环境 - 并在那里进行检查。

Since leak detection programs uses OS specific instrumentation code which injected to your code, there aren't many multi platform solutions, as each OS has it's own memory management features.

I used to work with bounds-checker, AQTime (more modern) but they both run on windows based software.
if your code is pure C++ than you can just port it to MS environment - and check it there.

久夏青 2024-08-16 12:53:50

IBM 的 purify 有 Linux、Windows 和各种 Unix 版本(不确定 OSX )。它是付费软件,但您也许可以使用试用版。

IBM's purify has Linux, Windows and various Unix versions (not sure about OSX). It is paid software, but you may be able to get away with using the trial version.

哥,最终变帅啦 2024-08-16 12:53:50

您可以尝试使用电围栏 (efence)

You might try Electric Fence (efence)

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