Skip to content
Ricky
Chinese

搜尋

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Go 程式碼重構:23 倍效能追擊

  • 則言
  • 1 分鐘
$ go test -bench=. -cpuprofile cpu.prof
$ go tool pprof -svg cpu.prof > cpu.svg
$ go test -bench=. -trace trace.out
$ go tool trace trace.out