google gperf tool【cpu】
生活随笔
收集整理的這篇文章主要介紹了
google gperf tool【cpu】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1) 安裝gperf時, 要 ./configure --enable-frame-pointers
2)編譯自己程序時, flags要增加 -fno-omit-frame-pointer??? lib要-ltcmalloc_and_profiler
3)起程序時, 必須? env CPUPROFILE=./cpu.prof?? ./my_prog 在同一shell行。。。
4)如果說找不到tcmalloc庫, 則需要將庫路徑加到/etc/ld.so.conf中、并且執行ldconfig
然后就是結果查看, 見或者其他相關文檔
http://blog.csdn.net/xiongwei1209/article/details/6772446
總結
以上是生活随笔為你收集整理的google gperf tool【cpu】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: lua c/c++ 交互 基础
- 下一篇: opengl win32 nehe