summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7b46d013d65fff69a619b7d1878db0594479d8be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
build:
	cargo build --release

test:
	cargo test --release

bench:
	cargo run --release --features "benchmarking" --bin perf-test

profile:
	cargo build --release --features "benchmarking single-threaded"
	mkdir -p target/profile
	sudo perf record -F 1000 -a -g target/release/perf-test
	sudo perf script > target/profile/out.perf
	../FlameGraph/stackcollapse-perf.pl target/profile/out.perf > target/profile/out.folded
	../FlameGraph/flamegraph.pl target/profile/out.folded > target/profile/flamegraph.svg

clean:
	cargo clean

submission.zip:
	zip -r9 submission.zip bot.json Cargo.lock Cargo.toml src

.PHONY: build test bench profile clean