[linux] 内存测试 gperftools

内存测试构建:

工具:gperftools/heap_checker

https://gperftools.github.io/gperftools/heap_checker.html
安装google-perftools:
 
apt-get install libunwind-dev
apt-get install google-perftools

方式1,编译时指定

方式2,启动时加载

运行

可视化输出

参考:

原文地址:https://www.cnblogs.com/zeolim/p/14108183.html