Skip to content

Commit

Permalink
Add take cpu profile script
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Aug 17, 2015
1 parent c8e9fe3 commit b2940ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions take_cpu_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

NODE_KILL=`which node-kill`

if [ -f "$HOME/.nodepath" ]; then
NODE_KILL=`cat $HOME/.nodepath`/node-kill;
fi

$NODE_KILL --start_profiling $1

0 comments on commit b2940ac

Please sign in to comment.