Update profiling on linux jonathan lambrechts authored by Sébastien Timmermans's avatar Sébastien Timmermans
......@@ -9,7 +9,9 @@
## Profile the ./myexe
```LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=prof ./myexe```
Attention, le chemin d'accès jusqu'à libprofiler peut varier !
Careful, the access path to `libprofiler`may change !
For example:
```LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libprofiler.so CPUPROFILE=prof ./my_exe```
## show online the results
```~/go/bin/pprof -http localhost:8000 prof```
......@@ -26,3 +28,6 @@ Attention, le chemin d'accès jusqu'à libprofiler peut varier !
and open it :
```evince my_pdf_prof.pdf```
## Remark :
Be careful of your versions: current `pprof` (august 2020) is [not compatible](https://github.com/google/pprof/issues/538) with go version < 1.13. You should update `go` or use older version of `pprof`. (