I installed tcmalloc on Ubuntu 14.0 using apt-get install libtcmalloc-minimal4
I did following steps:
ln -s libtcmalloc_minimal.so.4.1.2 libtcmalloc_minimal.so
linked my executable with -ltcmalloc_minimal
After running the code, I can not see any performance difference.
I tried to run with HEAPCHECK to check if tcmalloc is being used, but did not found any warnings associated with HEAPCHECK.
My programs contains malloc calls and openMP. Is there any thing else I need to do? How can I check to make sure that tcmalloc is being used by my program?