10aff9816bb3a802eb5623441d41653cd23e624b
[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         sudo perf record -F 99 -a -g target/release/perf-test
10         sudo perf script > out.perf
11         ../FlameGraph/stackcollapse-perf.pl out.perf > out.folded
12         ../FlameGraph/flamegraph.pl out.folded > flamegraph.svg
13
14 clean:
15         cargo clean
16
17
18 .PHONY: build test profile clean