企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
[TOC] ## trace 侵入式 ``` func main() { f, err := os.Create("trace.out") if err != nil { panic(err) } defer f.Close() err = trace.Start(f) if err != nil { panic(err) } defer trace.Stop() // code .. } ``` 生成 trace.out ``` go tool trace --http=127.0.0.1:7000 trace.out ```