Update profiling on linux jonathan lambrechts authored by Sébastien Timmermans's avatar Sébastien Timmermans
...@@ -8,6 +8,7 @@ GOPATH=$HOME/go go get github.com/google/pprof ...@@ -8,6 +8,7 @@ GOPATH=$HOME/go go get github.com/google/pprof
## Profile the ./myexe ## Profile the ./myexe
LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=prof ./myexe LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=prof ./myexe
Attention, le chemin d'accès jusqu'à libprofiler peut varier !
## show online the results ## show online the results
~/go/bin/pprof -http localhost:8000 prof ~/go/bin/pprof -http localhost:8000 prof
... ...
......