Run Performance Analysis (Ubuntu)
After intalling perf and flamegraph for cargo.
Adjust the kernel event access:
Run flamegraph:
&&
Code coverage
Visualize coverage in VSCode using watch/coverage gutters
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