并发效率调优工具箱

  • nar流量测试命令
  • netperf带宽测试工具
  • redid-benchmark
  • nmon CPU、带宽监控工具
  • google perftool 找到最耗cpu的函数。

             https://github.com/gperftools/gperftools.git

             yum install autoconf

             yum install automake

             yum install  libtool

             ./autogen.sh

             ./configure

             make

             make install

             gcc gperftest.c -O0 -lprofiler

             export LD_LIBRARY_PATH=/usr/local/lib

             ./a.out

             pprof --text a.out MyProfile

             yum install graphviz ghostscript -y

             pprof --pdf a.out MyProfile > MyProfile.pdf

            

            

posted @ 2016-04-07 14:07  米开兰基罗  阅读(196)  评论(0编辑  收藏  举报