golang CPU性能火焰图分析

step 1 获取cpu采样

go tool pprof http://localhost:6001/debug/pprof/profile

执行完成后会打印采样文件所在的位置

step 2 web端火焰图展示

go tool pprof -http=0.0.0.0:8081 /home/xxxx/pprof/pprof.gsmdatasvrd.samples.cpu.037.pb.gz