Skip to content

Instantly share code, notes, and snippets.

@deshmukhrajvardhan
Created October 30, 2018 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deshmukhrajvardhan/a69b16712967350036a940b7f6b6e00c to your computer and use it in GitHub Desktop.
Save deshmukhrajvardhan/a69b16712967350036a940b7f6b6e00c to your computer and use it in GitHub Desktop.
https://stackoverflow.com/questions/375913/how-can-i-profile-c-code-running-on-linux/378024#378024
valgrind --tool=callgrind ./libcurl_get_url_http2.o
git clone https://github.com/jrfonseca/gprof2dot.git
sudo apt-get install graphviz
python3 gprof2dot.py -f callgrind ../callgrind.out.17513 | dot -Tsvg -o ../get_url_ipc_output.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment