a87c095b314950daf22ad9314203337635127ed6
[entelect-challenge-tower-defence.git] / Makefile
1 build:
2         cargo build --release
3
4 test:
5         cargo test --release
6
7 profile:
8         cargo build --release --features "benchmarking"
9         mkdir -p target/profile
10         sudo perf record -F 1000 -a -g target/release/perf-test
11         sudo perf script > target/profile/out.perf
12         ../FlameGraph/stackcollapse-perf.pl target/profile/out.perf > target/profile/out.folded
13         ../FlameGraph/flamegraph.pl target/profile/out.folded > target/profile/flamegraph.svg
14
15 clean:
16         cargo clean
17
18
19 .PHONY: build test profile clean