Skip to content

Commit 7de2f61

Browse files
committed
add time span argument for heaptimeline
1 parent 1d5f90b commit 7de2f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

take_heaptimeline

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ if [ -f "$HOME/.nodepath" ]; then
66
NODE_KILL=`cat $HOME/.nodepath`/node-kill;
77
fi
88

9-
$NODE_KILL --start_timeline time=30s $1
9+
PID=$1
10+
TIME=${2:-30}s
11+
12+
$NODE_KILL --start_timeline time=$TIME $PID

0 commit comments

Comments
 (0)