mirror of
https://github.com/theryangeary/choose
synced 2024-11-10 05:24:13 +00:00
Use debuginfo only for flamegraph builds
This commit is contained in:
parent
47c9c73c4b
commit
5b5fa0ed7a
1 changed files with 6 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue