Thank Zhihao Tao for your hard work. The document spent countless nights and weekends, using his hard work to make it convenient for everyone.
If you have any questions, please send a email to zhihao.tao@outlook.com
1. Valgrind概述
Valgrind
工具套件提供了许多调试和性能分析工具,可帮助您使程序更快,更正确。这些工具中最流行的称为Memcheck
。它可以检测C和C++程序中常见的许多与内存有关的错误,这些错误可能导致崩溃和不可预测的行为。
valgrind官方资料
2. 安装
yum install -y valgrind
3. 常用工具
valgrind --track-fds=yes --leak-check=full --undef-value-errors=yes ./data-detect -r &