上一篇讲的是google-perftools,这次讲下
Valgrind
官网:
http://valgrind.org/
源码下载页
http://valgrind.org/downloads/current.html
编译后的valgrind 位于
valgrind-3.6.1/coregrind目录中
Massif Visualizer(用于查看massif 输出)
http://gitorious.org/massif-visualizer
https://projects.kde.org/projects/extragear/sdk/massif-visualizer
参考文章如下:
应用 Valgrind 发现 Linux 程序的内存问题
http://www.ibm.com/developerworks/cn/linux/l-cn-valgrind/
内存详解
http://www.ibm.com/developerworks/cn/java/j-nativememory-linux/?S_TACT=105AGX52&S_CMP=tec-csdn
在 Linux 平台中调试 C/C++ 内存泄漏方法
http://www.ibm.com/developerworks/cn/linux/l-cn-memleak/index.html
内存调试技巧
http://www.ibm.com/developerworks/cn/aix/library/au-memorytechniques.html
在Linux下使用用Valgrind查找内存泄漏和无效内存访问
http://www.linuxidc.com/Linux/2009-02/18646.htm
同时推荐下使用 Rational Purify
具体的文章如下 :
Rational Purify 使用及分析实例
http://www.ibm.com/developerworks/cn/rational/r-cail/
陈皓 C/C++内存问题检查利器—Purify
http://blog.csdn.net/haoel/article/details/2900
最后总结下具体的使用:
nohup /home/dikar/google-perf/valgrind-3.6.1/coregrind/valgrind --trace-children=yes --leak-check=full --log-file=leak.log
java TestLeak >/home/dikar/var.log 2>&1 &
分享到:
相关推荐
内存检查工具valgrind 的使用方法,通过valgrind 可以检查程序中的内存情况。
Valgrind使用概览与总结.详细说明了Valgrind的使用方法以及各工具的选项和使用方法。
亲测可以正常使用的valgrind在android板子上使用,对于需要用valgrind检测内存泄漏等问题的开发者有参考价值。
valgrind 使用手册
valgrind是一款运行在linux下的,用来定位c/c++程序中内存使用方面的错误的工具,包括:内存泄漏、使用未初始化的内存、读/...四、Valgrind使用方法 五、Valgrind使用参数 六、举例:valigrind在isearch3.2测试中的应用
valgrind的使用方法-详细手册
本压缩包内包含了详细的cpplint和valgrind的使用说明,以及配置Eclipse批量格式化为Google风格代码时需要的脚本。 这两个脚本都经过了大型项目测试,绝对没问题。
valgrind使用手册 This is the top level of Valgrind’s documentation tree. The documentation is contained in six logically separate documents, as listed in the following Table of Contents. To get ...
Valgrind用来调试C++程序的内存问题,比如内存泄露。本文档是Valgrind的使用手册。
介绍algrind的安装与使用方法,通过对内存错误的各种出错信息的认识,帮助使用者正确使用valgrind工具。是在ubuntu上编辑的,请在ubuntu上打开 参考:https://blog.csdn.net/u012662731/article/details/78652651 ...
valgrind 命令使用说明,没个命令有详细的汉子说明,并给出实例
valgrind-3.15.0的官方使用手册 valgrind-3.15.0的官方使用手册 valgrind-3.15.0的官方使用手册
arm-linux-gnueabihf-valgrind-3.15.0 arm-linux-gnueabihf端使用
valgrind安装与使用
Valgrind的简介和使用方法,介绍了Valgrind的使用以及如何进行程序检查
valgrind安装包 安装步骤 安装说明;以及一些检查内存泄漏的用法
非常好的介绍材料,实用性很强.用户可以根据说明自己动手进行操作,掌握实践技能.