valgrind ----直接使用参数

时间:2021-09-08 22:41:09   收藏:0   阅读:37

内存泄露:

sudo valgrind --tool=memcheck --leak-check=full --time-stamp=yes --max-threads=1000 --track-origins=yes --log-file=./valgrind_report_1000.log    a.out

多线程竞争:

sudo valgrind --tool=helgrind  --log-file=./valgrind_report_0906_mul_thread.log a.out

 

原文:https://www.cnblogs.com/axjlxy/p/15240004.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!