2 unstable releases
Uses new Rust 2024
| 0.2.0 | Oct 13, 2025 |
|---|---|
| 0.1.0 | Oct 5, 2025 |
#342 in Profiling
330KB
1.5K
SLoC
Run Performance Analysis (Ubuntu)
After intalling perf and flamegraph for cargo.
Adjust the kernel event access:
sudo sh -c 'echo -1 >/proc/sys/kernel/perf_event_paranoid'
Run flamegraph:
export CARGO_PROFILE_RELEASE_DEBUG=true && cargo flamegraph --example print_hsperfdata -o target/flamegraph.svg -c "record -e branch-misses -c 100 --call-graph lbr -g"
Code coverage
cargo install cargo-llvm-cov --locked
cargo llvm-cov
Visualize coverage in VSCode using watch/coverage gutters
cargo install cargo-nextest --locked
cargo llvm-cov --lcov --output-path ./target/lcov.info
Dependencies
~2MB
~41K SLoC