diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2020-03-16 11:42:04 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2020-03-16 19:56:07 -0400 |
commit | 5b5fa0ed7ab6a8383dec0d7713e99bab0a175b0f (patch) | |
tree | 8f08b0374aeb136f9a949ce29d23f03cf7afb461 | |
parent | 47c9c73c4b845dde67d4aea6ef16be5cdde9e79a (diff) |
Use debuginfo only for flamegraph builds
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |