2012年1月14日

使用google-perftools的tcmalloc

摘要: 使用google-perftools的tcmalloc安装使用export LD_PRELOAD="/usr/local/lib/libtcmalloc.so"cat testMalloc.cpp & g++ testMalloc.cpp & ./a.out#include <stdio.h>#include <memory.h>#include <stdlib.h>int main(){ void *p=malloc(100); printf("stop here\n"); getchar(); fr 阅读全文

posted @ 2012-01-14 00:20 cutepig 阅读(716) 评论(0) 推荐(0) 编辑

导航