Skip to content

Commit 7c19164

Browse files
authored
Merge pull request #15 from joyeecheung/heap-profile
heap profiling command
2 parents bd0f8cd + 6648e23 commit 7c19164

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

take_heap_profile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
DIR=$(cd "$(dirname "$0")"; pwd)
4+
GET_NODE_KILL=$DIR/get_node_kill
5+
NODE_KILL=`$GET_NODE_KILL`
6+
7+
PID=$1
8+
TIME=${2:-180}s
9+
10+
$NODE_KILL --start_heap_profiling time=$TIME $PID

0 commit comments

Comments
 (0)