Windows平台使用heob
-
heob下载:https://sourceforge.net/projects/heob/
-
dwarfstack下载:https://github.com/ssbssa/dwarfstack/releases
-
heob和dwarfstack放到一个目录
![](https://img-blog.csdnimg.cn/img_convert/8b10ff01d1609cabc1a49a8b756be102.png)
-
配置heob的路径
![](https://img-blog.csdnimg.cn/img_convert/edf896a8011170caec02e8e1ace9963f.png)
![](https://img-blog.csdnimg.cn/img_convert/35fa6f20c85587513db6ff5e56a2eacf.png)
Linux平台使用Valgrind
1. 安装valgrind
sudo apt-get install valgrind
2. 运行valgrind,Qt Creator=>Analyze=>Valgrind Memory Analyzer