Opportunistically use perftools if installed.

Allows us to collect profiles of the open source build using gprof.
5 files changed