-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (28 loc) · 811 Bytes
/
makefile
File metadata and controls
28 lines (28 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ta=cat
flame=FlameGraph/
.PHONY:
test:
local-pipe cargo test test_interpreter --color=always -- --nocapture &
.PHONY:
2:
(cargo build --color=always --features clippy 2>&1 | ${ta} >> pipe) &
.PHONY:
3:
local-pipe cargo test --color=always -- --nocapture &
.PHONY:
4:
(cargo doc --open 2>&1 | ${ta} > /dev/null) &
.PHONY:
profile-debug:
mkdir -p tmp/
cargo test --no-run
perf record -g `./find_test_executable.sh debug`
perf script | $(flame)stackcollapse-perf.pl | $(flame)flamegraph.pl > tmp/flame-debug.svg
chromium-browser tmp/flame-debug.svg
.PHONY:
profile-release:
mkdir -p tmp/
cargo test --release --no-run
perf record -g `./find_test_executable.sh release`
perf script | $(flame)stackcollapse-perf.pl | $(flame)flamegraph.pl > tmp/flame-release.svg
chromium-browser tmp/flame-release.svg