Node.js dtrace error in Mac OS X Yosemite

假装没事ソ 提交于 2019-12-11 02:13:00

问题


I try DTrace the Node.js application on the 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

And this is what I have: http://pastebin.com/NjbR2zug

There are an errors like this:

dtrace: error on enabled probe ID 1 (ID 28: profile:::profile-97): invalid address (0x5) in action #2

Node.js installed both by a Brew and a NVM, I tried launch my app.js by both this installations.

What can I try to resolve this promlem?


回答1:


The jstack() action appears to be completely broken; log a bug with Apple.



来源:https://stackoverflow.com/questions/28011482/node-js-dtrace-error-in-mac-os-x-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!