Changes
Page history
Update profiling on linux jonathan lambrechts
authored
Apr 26, 2018
by
Sébastien Timmermans
Show whitespace changes
Inline
Side-by-side
profiling-on-linux-jonathan-lambrechts.md
0 → 100644
View page @
730a006b
## 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