Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Adds robustness to the perf.sh method for finding hhvm pid. #94

Merged
merged 1 commit into from
Feb 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ ARGS="$@"
echo "Running as $(whoami)"

HHVM_PID="$(pgrep -xn 'hhvm')"
PREV_PID=`expr $HHVM_PID - 1`
if [ ! -f /tmp/perf-$HHVM_PID.map ] && [ -f /tmp/perf-$PREV_PID.map ]; then
HHVM_PID=$PREV_PID
fi
OSS_DIR=$(pwd)

echo "The first arg is the output directory."
Expand Down