Use debuginfo only for flamegraph builds

This commit is contained in:
Ryan Geary 2020-03-16 11:42:04 -04:00
parent 47c9c73c4b
commit 5b5fa0ed7a

View file

@ -1,8 +1,8 @@
flamegraph: release
flamegraph: release-debug
perf record --call-graph dwarf,16384 -e cpu-clock -F 997 target/release/choose -i test/long_long_long_long.txt 3:5
perf script | stackcollapse-perf.pl | stackcollapse-recursive.pl | c++filt | flamegraph.pl > flamegraphs/working.svg
flamegraph_commit: release
flamegraph_commit: release-debug
perf record --call-graph dwarf,16384 -e cpu-clock -F 997 target/release/choose -i test/long_long_long_long.txt 3:5
perf script | stackcollapse-perf.pl | stackcollapse-recursive.pl | c++filt | flamegraph.pl > flamegraphs/`git log -n 1 --pretty=format:"%h"`.svg
@ -16,6 +16,10 @@ bench: release
bench_commit: release
test/bench.sh `git log -n 1 --pretty=format:"%h"`
.PHONY: release-debug
release-debug:
RUSTFLAGS=-g cargo build --release
.PHONY: release
release:
cargo build --release