There was an error while loading. Please reload this page.
1 parent e7a1030 commit e73d55fCopy full SHA for e73d55f
1 file changed
libexec/profile
@@ -35,15 +35,13 @@ echo "Running asprof on '$executable $arguments' ..."
35
36
set -e
37
38
-$executable $arguments >& asprof_$stub.log
+$executable $arguments >& asprof_$stub.log &
39
40
-pid_bash=$!
+pid_exec=$!
41
42
-echo PID1=$pid_bash
43
sleep 5
44
-pid_java=$(pgrep -P "$pid_bash")
45
46
-echo PID2=$pid_java
+pid_java=$(pgrep -P "$pid_exec")
47
48
ps waux && ps -p $pid_java
49
0 commit comments