Changes
Page history
Update profiling on linux jonathan lambrechts
authored
Sep 01, 2020
by
Sébastien Timmermans
Show whitespace changes
Inline
Side-by-side
profiling-on-linux-jonathan-lambrechts.md
View page @
9cff986a
...
...
@@ -6,6 +6,8 @@
```
GOPATH=$HOME/go go get github.com/google/pprof
```
Be careful, an error may occur `undefined os.UserConfigDir`. In this case, you will have to update the go version or use an older version of pprof.
## Profile the ./myexe
```
LD_PRELOAD=/usr/lib/libprofiler.so CPUPROFILE=prof ./myexe
```
...
...
...
...