Valgrind ist ein Tool zum Erstellen von Speicherprofilen

valgrind --leak-check=yes ./prg

Ablaufprofile lasssen sich mit

valgrind --tool=helgrind

erstellen