Der Profiler gprof für Linux wird hier erklärt
How to profile C++ application with Callgrind / KCacheGrind