Profiling your code in terms of caller callee function calls can prove quite useful. Seeing which parts of your code are greedy is another aspect of it. 38 more words
Tags » Valgrind
Valgrind is a tool for memory debugging, memory leak detection, and profiling. It is named after the main entrance to Valhalla.
Valgrind was originally designed to be a free memory debugging tool for Linux on x86, but has since evolved to become a generic framework for creating dynamic analysis tools such as checkers and profilers. 330 more words
valgrind —tool=massif —-time-unit=B
ms_print massif.out.** >log.txt