Skip to content

Commit ddb11e7

Browse files
Update README.md
1 parent 09be2d1 commit ddb11e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ wget -O 'profile.pprof' 'http://localhost:6060/debug/pprof/profile?seconds=10'
203203
```
204204
Then send `profile.pprof` to someone who will then run `go tool pprof -http :5656 profile.pprof` and typically view the flame graph: View -> Flame Graph.
205205

206+
To build **with PGO**, run:
207+
```
208+
$ wget -O 'default.pgo' 'http://localhost:6060/debug/pprof/profile?seconds=30'
209+
$ CGO_ENABLED=0 go build -o after_pgo ./cmd/syncv3
210+
```
211+
206212

207213
### Developers' cheat sheet
208214

0 commit comments

Comments
 (0)