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
-g
option.
进命令行,设置代理到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
-g
option.