gperftools是Google开源的一款非常使用的性能分析工具集。github地址:https://github.com/gperftools/gperftools
主要包括:性能优异的malloc free内存分配器tcmalloc;基于tcmalloc的堆内存检测和内存泄漏分析工具heap-profiler,heap-checker;基于tcmalloc实现的程序CPU性能监测工具cpu-profiler.
上述所说的三种工具在我们服务器进程的性能分析监控,定位内存泄漏,寻找性能热点,提高malloc free内存分配性能的各个方面上都有非常成功的使用经验.
安装及使用文章:https://blog.youkuaiyun.com/10km/article/details/83820080
https://blog.youkuaiyun.com/zhengbin6072/article/details/80222639
https://www.jianshu.com/p/1611205f2c01