Update 23062906-关于开启pgo编译优化.md

pull/331/head
北野 - Michael Li 1 year ago committed by GitHub
parent 6a171c6ffc
commit de7198064d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ Beginning in Go 1.20, the Go compiler supports profile-guided optimization ([PGO
1. 为什么要添加`pprof`功能特性?
使用 net/http/pprof 在线获取CPU profile信息用于 [PGO](https://go.dev/doc/pgo) 编译优化。
2. 如何开启`pgo`编译优化?
2. 如何开启`pgo`编译优化?
The standard approach is to store a pprof CPU profile with filename default.pgo in the main package directory of the profiled binary, and build with go build -pgo=auto, which will pick up default.pgo files automatically.
3. 常见命令

Loading…
Cancel
Save