淺談 Go Tool Trace - 1 淺談 Go Tool Trace - 2 Go Trace 與使用者自訂追蹤分析 淺談 Go Tool Trace - 3 實際分析 Goroutine Analysis Go Tool Trace - 4 從 分析到實戰:最佳化 Goroutine 數量 trace trace 是「事件時間軸」,不是「取樣統計」 go tool trace:用來看 runtime …
Trace
All posts
更強大的 Go 執行追蹤能力 runtime/trace golang.org/x/exp/trace 飛行記錄(flight recording) // 設定飛行記錄器 fr := trace.NewFlightRecorder() fr.Start() // 設定並啟動 HTTP 伺服器 var once sync.Once http.HandleFunc("/my-endpoint", func(w …