Valgrind是一款用于内存调试、内存泄漏检测以及性能分析的软件开发工具。
Valgrind这个名字取自北欧神话中英灵殿的入口
下面介绍下Linux 环境下面安装的步骤,其他系统的安装参考压缩包里面README:
Building and installing it
~~~~~~~~~~~~~~~~~~~~~~~~~~To install from the Subversion repository :
0. Check out the code from SVN, following the instructions at
http://www.valgrind.org/downloads/repository.html.
-- 官方网站下载最新的安装包
1. cd into the source directory.
2. Run ./autogen.sh to setup the environment (you need the standard
autoconf tools to do so).
3. Continue with the following instructions...
To install from a tar.bz2 distribution:
4. Run ./configure, with some options if you wish. The only interesting
one is the usual --prefix=/where/you/want/it/installed.
5. Run "make".
6. Run "make install", possibly as root if the destination permissions
require that.
7. See if it works. Try "valgrind ls -l". Either this works, or it
bombs out with some complaint. In that case, please let us know
一些资料的网址: