使用google-perftools的tcmalloc加速

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 ...
more ...