“So verwenden Sie Valgrind” Code-Antworten

Verwenden Sie Valgrind

  valgrind --leak-check=yes ./myprog arg1 arg2
Jeff Spicoli

So verwenden Sie Valgrind

valgrind --leak-check=full \
         --show-leak-kinds=all \
         --track-origins=yes \
         --verbose \
         --log-file=valgrind-out.txt \
         ./executable exampleParam1
         
# Their meanings:
#  --leak-check=full: "each individual leak will be shown in detail"
#  --show-leak-kinds=all: Show all of "definite, indirect, possible, reachable" leak kinds in the "full" report.
#  --track-origins=yes: Favor useful output over speed. This tracks the origins of uninitialized values, which could be very useful for memory errors. Consider turning off if Valgrind is unacceptably slow.
#  --verbose: Can tell you about unusual behavior of your program. Repeat for more verbosity.
#  --log-file: Write to a file. Useful when output exceeds terminal space.
Regular everyday normal guy

Ähnliche Antworten wie “So verwenden Sie Valgrind”

Fragen ähnlich wie “So verwenden Sie Valgrind”

Weitere verwandte Antworten zu “So verwenden Sie Valgrind” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen