From b2940acb11fd8e980a90fbd1c9a5850303c6536c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B4=E7=81=B5?= Date: Mon, 17 Aug 2015 11:56:56 +0800 Subject: [PATCH] Add take cpu profile script --- take_cpu_profile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 take_cpu_profile diff --git a/take_cpu_profile b/take_cpu_profile new file mode 100755 index 0000000..baea160 --- /dev/null +++ b/take_cpu_profile @@ -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