>

Monday, 14 December 2015

Memory Leak detection using valgrind

Purpose: Find memory leaks and invalid Memory Use
Tools: Valgrind
Syntax:
valgrind --leak-check=full --verbose --show-reachable=yes --track-origins=yes --log-file=<Filename> –v <Command>
Procedure :
Step1: Compile in debug mode(use options –g –p)
Step2: Valgrind command
Step3 : Report

0 comments:

Post a comment