Javascript is executed typically within the browser. So you would use DTrace on the machine that is running the browser to observe the execution. You can run dtrace as non-root user. You just need the extra previledges (at least on Solaris its simple to get the required previledges) See http://www.solarisinternals.com/wiki/index.php/DTrace_Topics_Guide#Privileges

JavaScript is now being used on the server side as well. You can debug it on the server if it runs on the server side. Yes, you can monitor it on live production system.

HTHs

Angelo

On Oct 14, 2009, at 5:34 PM, Paul Li wrote:

I'm confused about using DTrace to trace JavaScript. Basically, my confusion is on which side DTrace is executed: the client side or the server side? because all the scripts I've been studying seem executed on the server side (requiring root privilege). However, javascript executes on the client side (i.e., browsers). So my question is whether DTrace can monitor javascript on live product systems?

Thanks!
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to