| Crates.io | hsperf |
| lib.rs | hsperf |
| version | 0.2.0 |
| created_at | 2025-10-05 08:06:14.938774+00 |
| updated_at | 2025-10-13 09:29:43.579873+00 |
| description | A library to monitor java virtual machines performance data |
| homepage | |
| repository | https://github.com/dbregeon/hsperf |
| max_upload_size | |
| id | 1868755 |
| size | 6,161,647 |
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"
cargo install cargo-llvm-cov --locked
cargo llvm-cov
cargo install cargo-nextest --locked
cargo llvm-cov --lcov --output-path ./target/lcov.info