Skip to content

Instantly share code, notes, and snippets.

Avatar

Rod Vagg rvagg

View GitHub Profile
@wolfeidau
wolfeidau / testing out dtrace.md
Created Mar 12, 2013
Messing around with dtrace and node.
View testing out dtrace.md

Monitoring a process which was exec'd using the -c switch.

$ pfexec dtrace -n 'profile-97/pid == $target && arg1/{@[jstack(100, 8000)] = count(); } tick-60s { exit(0); }' -c node
dtrace: description 'profile-97' matched 2 probes
> dtrace: pid 79919 has exited


              node`ares__read_line
              node`_ZN4node10cares_wrapL10InitializeEN2v86HandleINS1_6ObjectEEE+0x6a
You can’t perform that action at this time.