性能分析⼯具 go
2022年1月19日准备⼯作
• 安装 graphviz mac
1 |
brew install graphviz |
• 将 $GOPATH/bin 加⼊ $PATH
1 |
Mac OS: 在 .bash_profile 中修改路径 |
• 安装 go-torch
1 2 3 |
go get github.com/uber/go-torch 下载并复制 flamegraph.pl (https://github.com/brendangregg/FlameGraph)⾄ $GOPATH/bin 路径下 将 $GOPATH/bin 加⼊ $PATH |
• 安装 graphviz windows
1 |
https://gitlab.com/graphviz/graphviz/-/packages/4055384 从这寻找对应的版本下载 |
• 安装 go-torch windows
go get github.com/uber/go-torch