Answer the question
In order to leave comments, you need to log in
Node.js profiling: Why does dtrace fail on Mac OS X Yosemite?
Trying to profile Node.js with DTrace on Mac OS X 10.10 Yosemite:
sudo dtrace -n 'profile-97/execname == "node" && arg1/{ @[jstack(150, 8000)] = count(); } tick-60s { exit(0); }' &> /tmp/dtrace.out
dtrace: error on enabled probe ID 1 (ID 28: profile:::profile-97): invalid address (0x5) in action #2
Answer the question
In order to leave comments, you need to log in
Because OS X doesn't support jstack()
dtrace in scripts. But it works on FreeBSD, SmartOS and you can still get an analogue on linux: www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question