Using perf:
$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg
NOTE: See @GabrielMajeri's comments below about the
-goption.
| 进命令行,设置代理到ss | |
| set http_proxy=http://127.0.0.1:1080 | |
| set https_proxy=https://127.0.0.1:1080 | |
| mkdir -p $GOPATH/src/golang.org/x | |
| cd $GOPATH/src/golang.org/x | |
| git clone https://github.com/golang/tools.git | |
| Cloning into 'tools'... | |
| remote: Counting objects: 19439, done. |
Using perf:
$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg
NOTE: See @GabrielMajeri's comments below about the
-goption.