mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 11:13:43 +00:00
1e5c6bc5b8
It is currently broken. (see https://github.com/japaric/xargo/issues/227) This makes it easier to for example patch whole crates away.
13 lines
420 B
Bash
Executable File
13 lines
420 B
Bash
Executable File
#!/bin/bash
|
|
source config.sh
|
|
|
|
# These files grow really big (~1.4G) because of the sample frequency
|
|
rm perf.data* || true
|
|
|
|
# Profile compiling libcore
|
|
perf record -F 9000 --call-graph dwarf \
|
|
-- $RUSTC --crate-type lib build_sysroot/sysroot_src/src/libcore/lib.rs --crate-name core
|
|
|
|
# Generate the flamegraph
|
|
perf script | ../FlameGraph/stackcollapse-perf.pl | grep cranelift | ../FlameGraph/flamegraph.pl > abc.svg
|