CMake/Google Perftools CPUProfiler

The Google Perftools CPUProfiler (lprofiler) does not seem to be linked into bro when perftools is enabled. Is this an error or is it intentional?

Is there an alternate flag available to include the CPU Profiler?

configured with --enable-perftools option, rebuilt and installed, no lprofiler exists.

$ ldd /usr/local/bro/bin/bro => (0xb77bf000) => /usr/lib/i386-linux-gnu/ (0xb7770000) => /usr/lib/i686/cmov/ (0xb7723000) => /usr/lib/i686/cmov/ (0xb7574000) => /usr/lib/ (0xb7560000) => /usr/local/lib/ (0xb74dc000) => /usr/lib/i386-linux-gnu/ (0xb73ee000) => /lib/i386-linux-gnu/i686/cmov/ (0xb73c8000) => /lib/i386-linux-gnu/ (0xb73aa000) => /lib/i386-linux-gnu/i686/cmov/ (0xb7250000) => /lib/i386-linux-gnu/i686/cmov/ (0xb7237000) => /lib/i386-linux-gnu/i686/cmov/ (0xb7233000)
/lib/ (0xb77c0000)



Examining at FindGooglePerftools, looks like it only uses tcmalloc. The attached patch should change this to use tcmalloc_and_profiler instead.

James, mind opening an issue for this on the tracker?


tcmalloc_prof.patch (357 Bytes)