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