... | ... | @@ -8,6 +8,7 @@ GOPATH=$HOME/go go get github.com/google/pprof |
|
|
|
|
|
## Profile the ./myexe
|
|
|
LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=prof ./myexe
|
|
|
Attention, le chemin d'accès jusqu'à libprofiler peut varier !
|
|
|
|
|
|
## show online the results
|
|
|
~/go/bin/pprof -http localhost:8000 prof
|
... | ... | |