organic/scripts/callgrind.bash
Tom Alexander 45283b48d9
All checks were successful
rustfmt Build rustfmt has succeeded
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
Update performance scripts to support taking input file parameters.
2023-09-06 19:31:09 -04:00

14 lines
357 B
Bash
Executable File

#!/usr/bin/env bash
#
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR/../"
RUSTFLAGS="-C opt-level=0" cargo build --no-default-features
valgrind --tool=callgrind --callgrind-out-file=callgrind.out target/debug/parse "${@}"
echo "You probably want to run:"
echo "callgrind_annotate --auto=yes callgrind.out"