[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,启动时加载

运行

可视化输出

参考:

posted @ 2020-12-09 14:04  张浦  阅读(566)  评论(0编辑  收藏  举报