Skip to content

Commit e9aa07d

Browse files
authored
Merge pull request #7 from joyeecheung/master
Add time span argument for heaptimeline
2 parents 1d5f90b + 2ba78a1 commit e9aa07d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commandx",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "commands of alinode agentx",
55
"scripts": {},
66
"repository": {

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)