“GPerftools” is a profiler which is used by developers to build application with early findings of performance issue such as CPU usage and memory leaks and other performance issues.It is also used by Google.
This product is available under BSD licence.This is especially for multi threaded application in C++ with templates. It has CMalloc, Heap-Checker, Heap-Profiler and CPU-Profiler.
The following link shows ,how google uses gperftools as a profiler
http://gperftools.googlecode.com/svn/trunk/doc/cpuprofile.html
For GPerfTools Download and Documentation:
http://code.google.com/p/gperftools/