Chinaunix首页 | 论坛 | 博客
  • 博客访问: 450923
  • 博文数量: 80
  • 博客积分: 2301
  • 博客等级: 大尉
  • 技术积分: 884
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-16 20:07
个人简介

I\'m interested in mathematics and Daoism. Welcome to talk about these subjects with me.

文章分类

全部博文(80)

文章存档

2017年(2)

2016年(16)

2015年(4)

2014年(6)

2013年(22)

2012年(2)

2011年(1)

2010年(4)

2009年(20)

2008年(2)

2007年(1)

我的朋友

分类: 系统运维

2012-05-25 15:27:27

valgrind运行方法很简单:
1) valgrind --leak-check=full --track-fds=yes 程序 参数
  这样你的程序就会在valgrind监控下运行了,结果会直接输出到屏幕上。

2) 如果想把结果输出到日志文件,用如下的命令:
valgrind --log-file=valgrind_log --leak-check=full --track-fds=yes 程序 参数
阅读(2170) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~