Skip to content

Commit e73d55f

Browse files
committed
fix profile script
1 parent e7a1030 commit e73d55f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

libexec/profile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ echo "Running asprof on '$executable $arguments' ..."
3535

3636
set -e
3737

38-
$executable $arguments >& asprof_$stub.log
38+
$executable $arguments >& asprof_$stub.log &
3939

40-
pid_bash=$!
40+
pid_exec=$!
4141

42-
echo PID1=$pid_bash
4342
sleep 5
44-
pid_java=$(pgrep -P "$pid_bash")
4543

46-
echo PID2=$pid_java
44+
pid_java=$(pgrep -P "$pid_exec")
4745

4846
ps waux && ps -p $pid_java
4947

0 commit comments

Comments
 (0)