valgrind基本用法

来源:互联网 发布:vb中index是什么意思 编辑:程序博客网 时间:2024/05/22 13:53

valgrind基本用法

 

1. 生成ps文件

    valgrind --tool=massif ./prog args

2. 其它工具

  valgrind --tool=callgrind ....

                 --tree=both  --auto=yes

 

 

3. gprof -pg

    输出gmon.out

    gprof < prog > gmon.out     #运行时间比采样间隔高两个数量级

 

原创粉丝点击