2023-04-23 16:58:57 +00:00
|
|
|
# (c) 2023 John A. Breaux
|
|
|
|
# This code is licensed under MIT license (see LICENSE for details)
|
|
|
|
|
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:
|
2023-04-15 03:20:30 +00:00
|
|
|
cargo run -- '{{rom}}'
|
2023-04-03 07:01:25 +00:00
|
|
|
|
|
|
|
debug rom:
|
2023-04-15 03:20:30 +00:00
|
|
|
cargo run -- -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-15 03:20:30 +00:00
|
|
|
cargo run --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:
|
2023-04-15 03:20:30 +00:00
|
|
|
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -F 15300 --open --bin chirp-minifb -- chip8Archive/roms/1dcell.ch8 -Ps10 -S2100000 -m xochip
|
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
|
|
|
|