Windows 有没有好的 Valgrind 替代品? [英] Is there a good Valgrind substitute for Windows?

查看:30
本文介绍了Windows 有没有好的 Valgrind 替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我发现它仅适用于 Linux 时,我正在研究 Valgrind 以帮助改进我的 C 编码/调试 - 我没有其他需要或兴趣将我的操作系统迁移到 Linux,所以我想知道是否有同样好的程序窗户.

I was looking into Valgrind to help improve my C coding/debugging when I discovered it is only for Linux - I have no other need or interest in moving my OS to Linux so I was wondering if there is a equally good program for Windows.

推荐答案

正如 jakobengblom2 所指出的,valgrind 有一套工具.根据您谈论的是哪一个,有不同的 Windows 计数器部件.这里我只会提到 OSS 或免费工具.

As jakobengblom2 pointed out, valgrind has a suit of tools. Depending which one you are talking about there are different windows counter parts. I will only mention OSS or free tools here.

1.内存检查:

博士记忆.这是一个相对较新的工具,在 Windows 7 上运行良好.我最喜欢的功能是它将相同的泄漏分配堆栈分组到报告中.

Dr. Memory. It is a relatively new tool, works very well on Windows 7. My favorite feature is that it groups the same leaks' allocation stacks in the report.

http://code.google.com/p/drmemory/

我也用过 UMDH( http://support.microsoft.com/kb/268343 ) 并发现它安静有用且易于设置.从Win2000到Win7都可以使用.

I have also used UMDH( http://support.microsoft.com/kb/268343 ) and found it quiet useful and easy to setup. It works from Win2000 to Win7.

AppVerifier 是 windows 本机代码开发人员必备的 swissknife,它的内存"检查器也做类似的工作http://msdn.microsoft.com/en-us/library/dd371695%28v=vs.85%29.aspx

AppVerifier is a must have swissknife for windows native code developers, its "memory" checker does similar job http://msdn.microsoft.com/en-us/library/dd371695%28v=vs.85%29.aspx

2.通话记录:

我最喜欢的是 verysleepy ( http://www.codersnotes.com/sleepy ) 它很小但非常有用且易于使用.

My favorite is verysleepy ( http://www.codersnotes.com/sleepy ) It is tiny but very useful and easy to use.

如果您需要更多功能,AMD CodeAnalyst™ 性能分析器是免费的:http://developer.amd.com/documentation/videos/pages/introductiontoamdcodeanalystperformanceanalyzer.aspx

If you need more features, AMD CodeAnalyst™ Performance Analyzer is free: http://developer.amd.com/documentation/videos/pages/introductiontoamdcodeanalystperformanceanalyzer.aspx

Windows 性能分析工具是免费的,不是很容易使用,但如果您愿意花时间,可以完成工作.http://blogs.microsoft.co.il/blogs/sasha/archive/2008/03/15/xperf-windows-performance-toolkit.aspx下载:http://msdn.microsoft.com/en-us/performance/cc752957

Windows Performance Analysis tools is free from Microsoft, not very easy to use but can get the job done if you are willing to spend the time. http://blogs.microsoft.co.il/blogs/sasha/archive/2008/03/15/xperf-windows-performance-toolkit.aspx Download: http://msdn.microsoft.com/en-us/performance/cc752957

3.地块:

Windows 上类似(不完全匹配)的免费工具有:

Similar(not quite exact match) free tools on windows are:

来自 sysinternals 的 VMMap:http://technet.microsoft.com/en-us/sysinternals/dd535533

VMMap from sysinternals : http://technet.microsoft.com/en-us/sysinternals/dd535533

!heap 命令在windbg 中:http://hacksoflife.blogspot.com/2009/06/heap-debugging-memoryresource-leak-with.html

!heap command in windbg : http://hacksoflife.blogspot.com/2009/06/heap-debugging-memoryresource-leak-with.html

4.缓存研磨:

上面提到的 Windows 性能工具具有一定级别的 L2 缓存未命中分析功能,但不如 Cachegrind 好且易于使用.

Above mentioned Windows Performance Tools has certain level of L2 cache miss profiling capability but not quite as good and easy to use as Cachegrind.

5.DRD:

还没有在 Windows 上找到任何免费且功能强大的东西,我能找到的唯一免费的 Windows 工具是稍微接近的锁定"检查器应用验证器:http://msdn.microsoft.com/en-us/library/dd371695%28v=vs.85%29.aspx

Haven't found anything free and as powerful on Windows yet, the only free tool for windows I can find that is slightly close is the "lock" checker in AppVerifier: http://msdn.microsoft.com/en-us/library/dd371695%28v=vs.85%29.aspx

这篇关于Windows 有没有好的 Valgrind 替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆