Enable or Disable CPU Profiler

Enables or disables the CPU profiler. Requires compilation with gperftools. The output file can be then analyzed with pprof.