Update performance scripts to support taking input file parameters.
This commit is contained in:
parent
08e4c646e5
commit
45283b48d9
@ -7,7 +7,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
cd "$DIR/../"
|
cd "$DIR/../"
|
||||||
|
|
||||||
RUSTFLAGS="-C opt-level=0" cargo build --no-default-features
|
RUSTFLAGS="-C opt-level=0" cargo build --no-default-features
|
||||||
valgrind --tool=callgrind --callgrind-out-file=callgrind.out target/debug/parse
|
valgrind --tool=callgrind --callgrind-out-file=callgrind.out target/debug/parse "${@}"
|
||||||
|
|
||||||
echo "You probably want to run:"
|
echo "You probably want to run:"
|
||||||
echo "callgrind_annotate --auto=yes callgrind.out"
|
echo "callgrind_annotate --auto=yes callgrind.out"
|
||||||
|
@ -16,7 +16,7 @@ function main {
|
|||||||
additional_flags+=(--profile "$PROFILE")
|
additional_flags+=(--profile "$PROFILE")
|
||||||
fi
|
fi
|
||||||
cargo build --no-default-features "${additional_flags[@]}"
|
cargo build --no-default-features "${additional_flags[@]}"
|
||||||
perf record --freq=2000 --call-graph dwarf --output=perf.data target/${PROFILE}/parse
|
perf record --freq=2000 --call-graph dwarf --output=perf.data target/${PROFILE}/parse "${@}"
|
||||||
|
|
||||||
# Convert to a format firefox will read
|
# Convert to a format firefox will read
|
||||||
# flags to consider --show-info
|
# flags to consider --show-info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user