Skip to content

Instantly share code, notes, and snippets.

@Eskalol
Created November 16, 2016 13:55
Show Gist options
  • Save Eskalol/7948ac68e3b7280ef55d691e31b95081 to your computer and use it in GitHub Desktop.
Save Eskalol/7948ac68e3b7280ef55d691e31b95081 to your computer and use it in GitHub Desktop.
Useful profilers and debuggers for C
# valgrind check for leaks and other errors
$ valgrind --leak-check=full ./program arg1 arg2
# gdb debugger for segmentation fault etc...
$ gbd -ex=r --args ./program arg1 arg2
# kcachegrind visual profiling
$ valgrind --tool=callgrind ./program
$ kcachegrind &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment