posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          gprof call graph & memcached

          Posted on 2012-07-16 18:03 Milo的海域 閱讀(337) 評論(0)  編輯  收藏 所屬分類: Linux
          assume gprof and gprof2dot.py, graphviz be installed.


          1. checkout memcached src code from git server
          2. sh autogen.sh & ./configure
          3. modify Makefile about CFLAGS, append option '-pg', after that do make
          4. run memcached & do some actions by telnet
          5. terminate memcached process, a gmon.out file will be generated.
          6. gprof memcached gmon.out | /usr/bin/gprof2dot.py -n0 -e0 -c bw | dot -Tpng -o memcached_callgraph.png
          主站蜘蛛池模板: 琼结县| 马龙县| 乌鲁木齐县| 合川市| 兴义市| 新巴尔虎左旗| 福鼎市| 昂仁县| 浙江省| 满洲里市| 洪湖市| 赫章县| 阿鲁科尔沁旗| 江安县| 凌云县| 兴安县| 广河县| 仁布县| 井研县| 大方县| 天门市| 连云港市| 洮南市| 内丘县| 华池县| 武乡县| 晴隆县| 枞阳县| 山丹县| 将乐县| 元阳县| 盖州市| 高要市| 托克逊县| 平乐县| 昌都县| 木里| 乐清市| 封丘县| 靖边县| 临泽县|