你好,游客 登录 注册 搜索
背景:
阅读新闻

使用google-perftools的Tcmalloc加速

[日期:2011-07-16] 来源:Linux社区  作者:Linux [字体:大 中 小]

google-perftools这个工具可让开发创建更强大的应用程序,特别是那些用C++模版开发的多线程应用程序,包括TCMalloc, heap-checker, heap-profiler 和cpu-profiler。

1、安装libunwind(仅64位操作系统需要)
cd /usr/local/src/
wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99.tar.gz
tar zxvf libunwind-0.99.tar.gz
cd libunwind-0.99
CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC install

2、安装google-perftools
cd /usr/local/src/
wget http://google-perftools.googlecode.com/files/google-perftools-1.7.tar.gz
tar zvxf google-perftools-1.7.tar.gz
cd google-perftools-1.7
./configure
make && make install
echo “/usr/local/lib” > /etc/ld.so.conf.d/usr_local_lib.conf
/sbin/ldconfig

linux
相关资讯       Tcmalloc 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款