Ticket #447: Add support for gperftool's libprofiler in CMakeLists
This embeds a sampling profiler in the binary, which is activated by setting the CPUPROFILE environment variable to the path of a file where the profiling data should be written. This data can then be analyzed using the pprof tool.
More information at https://github.com/gperftools/gperftools .