Created
November 16, 2016 13:55
-
-
Save Eskalol/7948ac68e3b7280ef55d691e31b95081 to your computer and use it in GitHub Desktop.
Useful profilers and debuggers for C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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