Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

use valgrind

  valgrind --leak-check=yes ./myprog arg1 arg2
Comment

How to use 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.
Comment

PREVIOUS NEXT
Code Example
Shell :: linux ssh server 
Shell :: count new lines bash 
Shell :: get current working directory ubuntu 
Shell :: install visual studio on ubuntu 
Shell :: open tar.Z files 
Shell :: bash not equal 
Shell :: docker create image and push 
Shell :: grep last word in line 
Shell :: intel hd 4000 ubuntu driver 
Shell :: $$ in shell script 
Shell :: how to push to heroku outside the master branch 
Shell :: echo venv/ .gitignore 
Shell :: gnome 42 force dark mode 
Shell :: change mac address linux 
Shell :: linux kill process 
Shell :: brew check installed version 
Shell :: create a new branch and publish gitub 
Shell :: zoom is not open in ubutnu 
Shell :: git pull request 
Shell :: command to variable bash 
Shell :: delete commit from github 
Shell :: install php freebsd 
Shell :: git delete stash 
Shell :: remove all files in a directory linux that match pattern 
Shell :: How to find a process running on a linux machine from terminal 
Shell :: get date whit batch 
Shell :: npm install compression 
Shell :: parquet tools install mac 
Shell :: open current folder in terminal linux 
Shell :: setting up path in zsh 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =