Update profiling on linux jonathan lambrechts authored by Sébastien Timmermans's avatar Sébastien Timmermans
## installer libprofiler.so
apt install libgoogle-perftools-dev
## installer un meilleurs pprof (grace a golang)
apt install golang
GOPATH=$HOME/go go get github.com/google/pprof
## Profile the ./myexe
LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=prof ./myexe
## show online the results
~/go/bin/pprof -http localhost:8000 prof
## The package graphViz is needed.
using this line create a pdf :
~/go/bin/pprof -pdf prof > my_pdf_prof.pdf
and open it :
evince my_pdf_prof.pdf