Skip to content

Commit

Permalink
Use .PHONY. Add 'test/perf' for flamegraph
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed Jan 20, 2024
1 parent a0b9217 commit df131c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target/
**/*.rs.bk
perf_*
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.PHONY: check doc faktory faktory/* test test/*

FAKTORY_HOST=127.0.0.1
FAKTORY_PORT=7419
FAKTORY_PORT_UI=7420
Expand All @@ -22,9 +24,6 @@ faktory:
faktory/kill:
docker stop faktory

fmt:
cargo fmt

README.md: README.tpl src/lib.rs
cargo readme > README.md

Expand All @@ -38,4 +37,13 @@ test/e2e:
FAKTORY_URL=tcp://${FAKTORY_HOST}:${FAKTORY_PORT} cargo test --locked --all-features --all-targets

test/load:
cargo run --features binaries
cargo run --release --features binaries

test/perf:
cargo build --release --features binaries
perf record -o perf_loadtest.data --call-graph dwarf target/release/loadtest
perf script -i perf_loadtest.data | inferno-collapse-perf > perf_loadtest_stacks.folded
cat perf_loadtest_stacks.folded | inferno-flamegraph > perf_loadtest.svg

test/perf/clean:
rm perf_loadtest*

0 comments on commit df131c1

Please sign in to comment.