]> git.lizzy.rs Git - rust.git/blob - flamegraph.sh
[WIP] simd_shuffle*
[rust.git] / flamegraph.sh
1 #!/bin/bash
2 source config.sh
3
4 # These files grow really big (~1.4G) because of the sample frequency
5 rm perf.data* || true
6
7 # Profile compiling libcore
8 perf record -F 9000 --call-graph dwarf \
9     -- $RUSTC --crate-type lib build_sysroot/sysroot_src/src/libcore/lib.rs --crate-name core
10
11 # Generate the flamegraph
12 perf script | ../FlameGraph/stackcollapse-perf.pl | grep cranelift | ../FlameGraph/flamegraph.pl > abc.svg