Skip to content

Commit b2940ac

Browse files
committed
Add take cpu profile script
1 parent c8e9fe3 commit b2940ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

take_cpu_profile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
NODE_KILL=`which node-kill`
4+
5+
if [ -f "$HOME/.nodepath" ]; then
6+
NODE_KILL=`cat $HOME/.nodepath`/node-kill;
7+
fi
8+
9+
$NODE_KILL --start_profiling $1

0 commit comments

Comments
 (0)