Improve workflow and docs somewhat, make minifb optional

This commit is contained in:
2023-04-14 22:20:30 -05:00
parent 674af62465
commit 43fa623da3
12 changed files with 77 additions and 40 deletions

View File

@@ -8,19 +8,19 @@ test:
cargo nextest run
run rom:
cargo run --bin chirp-minifb -- '{{rom}}'
cargo run -- '{{rom}}'
debug rom:
cargo run --bin chirp-minifb -- -d '{{rom}}'
cargo run -- -d '{{rom}}'
# Run at 2100000 instructions per frame, and output per-frame runtime statistics
bench:
cargo run --bin chirp-minifb --release -- chip8Archive/roms/1dcell.ch8 -Ps10 -S2100000 -m xochip
cargo run --release -- chip8Archive/roms/1dcell.ch8 -Ps10 -S2100000 -m xochip
flame rom:
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -F 15300 --open --bin chirp-minifb -- '{{rom}}' -s10
flamebench:
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -F 15300 --open --bin chirp-minifb -- chip8Archive/roms/1dcell.ch8 -xPs10 -S2100000
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -F 15300 --open --bin chirp-minifb -- chip8Archive/roms/1dcell.ch8 -Ps10 -S2100000 -m xochip
cover:
cargo llvm-cov --open --doctests