Link against gperftools for profiling and tcmalloc?
https://github.com/gperftools/gperftools
Could we add a config option to link-in -lprofiler
if available, and have it on by default? This won't make the code slower, but it does make profiling a lot easier.
Could we also check if there is any advantage to using tcmalloc
over the regular glibc malloc
?