3 ms·
> I don't know about OS X DTrace, eg. $ sudo dtruss -d -f script/rails server you can also attach to a PID. If you are a developer on OS X it is good to k
by nikcub 14y ago
> I don't know about OS X
DTrace, eg.
$ sudo dtruss -d -f script/rails server
you can also attach to a PID. If you are a developer on OS X it is good to know DTrace and what it is capable of. There are a lot of default scripts installed in OS X and you can write your own (if you have ever run iosnoop or execsnoop then you have already used DTrace scripts), see:
http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/ http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scr...
http://hints.macworld.com/article.php?story=20071031121823710 http://hints.macworld.com/article.php?story=2007103112182371...
https://wikis.oracle.com/display/DTrace/Introduction https://wikis.oracle.com/display/DTrace/Introduction
- vidarh 14y agoThanks. I don't actually run much stuff on OS X - I use it as my work desktop, but all my "real work" is done via ssh to Linux boxes, so the OS X box is rarely running more than a browser, iTerm 2 and Thunderbird, all maximized. I only "see" OS X when something crashes.... EDIT: Completely unrelated, I just noticed who you are. We met in Mike's house when I came over for the launch of Edgeio. And I just realized how long ago that is.