Skip to content

Commit

Permalink
Merge pull request #451 from nisbet-hubbard/patch-3
Browse files Browse the repository at this point in the history
Document PGO
  • Loading branch information
kegsay authored Sep 9, 2024
2 parents c2dd20a + ddb11e7 commit cdb32f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ wget -O 'profile.pprof' 'http://localhost:6060/debug/pprof/profile?seconds=10'
```
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.

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


### Developers' cheat sheet

Expand Down

0 comments on commit cdb32f4

Please sign in to comment.