2023-03-28 09:38:16 +00:00
|
|
|
# Some common commands for working on this stuff
|
|
|
|
|
2023-04-01 05:14:15 +00:00
|
|
|
# Run All Tests
|
|
|
|
rat:
|
2023-03-28 12:35:18 +00:00
|
|
|
cargo test --doc && cargo nextest run
|
2023-03-28 09:38:16 +00:00
|
|
|
|
2023-04-01 05:14:15 +00:00
|
|
|
test:
|
|
|
|
cargo nextest run
|
|
|
|
|
2023-04-03 07:01:25 +00:00
|
|
|
run rom:
|
|
|
|
cargo run --bin chirp-minifb -- '{{rom}}'
|
|
|
|
|
|
|
|
debug rom:
|
|
|
|
cargo run --bin chirp-minifb -- -d '{{rom}}'
|
2023-04-01 05:14:15 +00:00
|
|
|
# Run at 2100000 instructions per frame, and output per-frame runtime statistics
|
|
|
|
bench:
|
2023-04-14 21:33:54 +00:00
|
|
|
cargo run --bin chirp-minifb --release -- chip8Archive/roms/1dcell.ch8 -Ps10 -S2100000 -m xochip
|
2023-04-02 20:29:34 +00:00
|
|
|
|
|
|
|
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
|
2023-03-30 04:46:20 +00:00
|
|
|
|
|
|
|
cover:
|
|
|
|
cargo llvm-cov --open --doctests
|
|
|
|
|
2023-03-28 09:38:16 +00:00
|
|
|
tokei:
|
2023-04-03 07:01:25 +00:00
|
|
|
tokei --exclude chip8-test-suite --exclude chip8Archive
|
2023-03-30 04:46:20 +00:00
|
|
|
|