Skip to content

Instantly share code, notes, and snippets.

进命令行,设置代理到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.
@KodrAus
KodrAus / Profile Rust on Linux.md
Last active August 12, 2024 12:37
Profiling Rust Applications

Profiling performance

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.