安装
$ git clone https://github.com/gperftools/gperftools.git
$ cd gperftools
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
使用
CPU Profile
https://gperftools.github.io/gperftools/cpuprofile.html
参考
https://blog.csdn.net/hemengsi123/article/details/50460173
https://www.cnblogs.com/persistentsnail/p/3294843.html
https://blog.csdn.net/aganlengzi/article/details/62893533
https://www.tuicool.com/articles/nUZJBb2