Valgrind

By 3:17 PM , , , , ,






Citing from their website "Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. You can also use Valgrind to build new tools."

We are using Valgrind mainly to check for memory leaks which can be a serious issue if the complexity of the program is high. The best practice is to check for memory leaks periodically during development and starting from the early stages.

Please refer to the website for detailed documentation and tips.

For sample execution command;


$ valgrind --log-file="valgrind.out" --track-origins=yes ./maestro.x > my_prog.out



You Might Also Like

0 comments