crow icon indicating copy to clipboard operation
crow copied to clipboard

How to use Crow with Tcmalloc?

Open guteksan opened this issue 4 years ago • 1 comments

It is hinted in the doc to link with Tcmalloc, but how exactly? The output of building Crow is just a single header: crow_all.h, but there is no difference whether Crow project was build with or without tcmalloc found. So should I link tcmalloc with my Crow-based project? But Tcmalloc has no Cmake support yet, so it is not exactly clear how can I take advantage if it.

guteksan avatar Apr 27 '20 14:04 guteksan

looking at the code, find_package(Tcmalloc) in CMakeLists.txt and FindTcmalloc.cmake seem to be the main relevant files, but as far as I understand, you only need to link Tcmalloc to your program when you compile it.

The-EDev avatar Oct 30 '20 00:10 The-EDev