Skip to content

Commit ee96965

Browse files
committed
Add 'build-time' recipe to track build speed
1 parent fd3edb9 commit ee96965

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target
22
/tarpaulin-report.html
33
fuzz-*.log
4+
/cargo-timing*.html

Justfile

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export DOG_DEBUG := ""
1818
cargo build --release --verbose
1919
strip "${CARGO_TARGET_DIR:-target}/release/dog"
2020

21+
# produce an HTML chart of compilation timings
22+
@build-time:
23+
cargo +nightly clean
24+
cargo +nightly build -Z timings
25+
2126
# compile the dog binary (without some features)
2227
@build-quick:
2328
cargo build --no-default-features

0 commit comments

Comments
 (0)