...
Code Block |
---|
|
IMAGE_INSTALL_APPEND += " valgrind" in the <image_recipe.bbappend> |
Code Block |
---|
language | c# |
---|
theme | DJango |
---|
title | Command to check memory leak |
---|
|
valgrind --tool=memcheck --leak-check=full --show-reachable=yes --num-callers=20 --track-fds=yes /usr/bin/<component>
|
Defining the options:
Code Block |
---|
|
cardc# | labeltheme | OptionsDJango |
---|
|
--tool=memcheck: "To the check the memory"
--leak-check=full: "each individual leak will be shown in detail"
--show-reachable=yes: "When enabled, the leak detector also shows "reachable" and "indirectly lost" blocks"
--num-callers=20: "Specifies the maximum number of entries shown in stack traces that identify program locations"
--track-fds=yes: "When enabled, Valgrind will print out a list of open file descriptors on exit."
/usr/bin/<component><component>: "Component's binary path" |
Use case:
Sample output of valgrind to reproduce leak for created memory leak
...