Added a static set of opening moves to get energy up and running
[entelect-challenge-tower-defence.git] / Makefile
index 5f2e069..ec1506f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,15 +4,19 @@ build:
 test:
        cargo test --release
 
+bench:
+       cargo run --release --features "benchmarking" --bin perf-test
+
 profile:
-       cargo build --release --features "benchmarking"
-       sudo perf record -F 1000 -a -g target/release/perf-test
-       sudo perf script > out.perf
-       ../FlameGraph/stackcollapse-perf.pl out.perf > out.folded
-       ../FlameGraph/flamegraph.pl out.folded > flamegraph.svg
+       cargo build --release --features "benchmarking single-threaded extended-time"
+       mkdir -p target/profile
+       perf record -g target/release/perf-test
+       perf report
 
 clean:
        cargo clean
 
+submission.zip: bot.json Cargo.lock Cargo.toml src
+       zip -r9 submission.zip bot.json Cargo.lock Cargo.toml src
 
-.PHONY: build test profile clean
+.PHONY: build test bench profile clean