hsperf

Crates.iohsperf
lib.rshsperf
version0.2.0
created_at2025-10-05 08:06:14.938774+00
updated_at2025-10-13 09:29:43.579873+00
descriptionA library to monitor java virtual machines performance data
homepage
repositoryhttps://github.com/dbregeon/hsperf
max_upload_size
id1868755
size6,161,647
(dbregeon)

documentation

README

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

Commit count: 0

cargo fmt