gperftools with CPU profiler seems to be working. You can put the
ProfilerStart() and ProfilerStop() wherever you want, but be wary
that putting them relatively close to each other may result in 0
samples.