Skip to content

Commit

Permalink
Add take gc trace command
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Aug 19, 2015
1 parent 5855855 commit fceec78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions take_gc_trace
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 --v8-options --trace_gc --pid=$1
9 changes: 9 additions & 0 deletions take_gc_trace_verbose
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 --v8-options --trace_gc --trace_gc_nvp --trace_fragmentation --trace_gc_verbose --pid=$1

0 comments on commit fceec78

Please sign in to comment.