Skip to content
Closed
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
8 changes: 3 additions & 5 deletions libexec/profile
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ echo "Running asprof on '$executable $arguments' ..."

set -e

$executable $arguments >& asprof_$stub.log
$executable $arguments >& asprof_$stub.log &

pid_bash=$!
pid_exec=$!

echo PID1=$pid_bash
sleep 5
pid_java=$(pgrep -P "$pid_bash")

echo PID2=$pid_java
pid_java=$(pgrep -P "$pid_exec")

ps waux && ps -p $pid_java

Expand Down
Loading