go tool pprof cpu.prof. 接著打 top 、 top -cum 可得知最花時間的函式。若要花俏一些,可用網頁看圖: $ go tool pprof -http=0.0.0.0:4231 cpu.prof.
確定! 回上一頁