Generate flamegraphs
This commit is contained in:
parent
93bbf67433
commit
081dda9c8a
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,8 @@
|
|||||||
# Rust files
|
# Rust files
|
||||||
/target
|
/target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
flamegraph.svg
|
||||||
|
perf.data*
|
||||||
|
|
||||||
# Chip-8 test ROMs
|
# Chip-8 test ROMs
|
||||||
/chip-8
|
/chip-8
|
||||||
|
10
justfile
10
justfile
@ -8,10 +8,16 @@ test:
|
|||||||
cargo nextest run
|
cargo nextest run
|
||||||
|
|
||||||
chirp:
|
chirp:
|
||||||
cargo run --bin chirp-minifb -- tests/chip8-test-suite/bin/chip8-test-suite.ch8
|
cargo run --bin chirp-minifb -- chip8-test-suite/bin/chip8-test-suite.ch8
|
||||||
# Run at 2100000 instructions per frame, and output per-frame runtime statistics
|
# Run at 2100000 instructions per frame, and output per-frame runtime statistics
|
||||||
bench:
|
bench:
|
||||||
cargo run --bin chirp-minifb --release -- chip-8/1dcell.ch8 -xP -s10 -S2100000
|
cargo run --bin chirp-minifb --release -- chip8Archive/roms/1dcell.ch8 -xP -s10 -S2100000
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
cargo llvm-cov --open --doctests
|
cargo llvm-cov --open --doctests
|
||||||
|
Loading…
Reference in New Issue
Block a user