title: Which is the most reliable profiling tool gprof or kcachegrind?
body: <p>Profiling some C++ number crunching code with both <code>gprof</code> and <code>kcachegrind</code> gives similar results for the functions that contribute most to the execution time (50-80% depending on input) but for functions between 10-30% both these tools give different results. Does it mean one of them is not reliable? What would yo do here?</p>