{"id":3967,"date":"2014-12-15T23:40:29","date_gmt":"2014-12-16T04:40:29","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/n1zyy\/?p=3967"},"modified":"2014-12-15T23:40:29","modified_gmt":"2014-12-16T04:40:29","slug":"dtrace-for-mac","status":"publish","type":"post","link":"https:\/\/blogs.n1zyy.com\/n1zyy\/2014\/12\/15\/dtrace-for-mac\/","title":{"rendered":"dtrace for Mac"},"content":{"rendered":"<p><a href=\"http:\/\/en.wikipedia.org\/wiki\/Strace\">strace<\/a> is pretty handy on Linux for profiling processes, including attaching to a running one and WTF-ing it.<\/p>\n<p>It turns out that there&#8217;s a Mac equivalent, <a href=\"http:\/\/dtrace.org\/blogs\/brendan\/2011\/10\/10\/top-10-dtrace-scripts-for-mac-os-x\/\">dtrace<\/a>\n<sup>1<\/sup>. If you skip past the instructions on how to use the terminal and using <code>top<\/code>, there are some good examples of using <code>dtrace<\/code>, including a lot more than just profiling system calls.<\/p>\n<hr \/>\n<p><sup>1<\/sup> Calling it a Mac app is slightly misleading; <a href=\"http:\/\/en.wikipedia.org\/wiki\/DTrace\">it comes from Sun<\/a>. But to someone used to <code>strace<\/code> on Linux who is using a Mac, <code>dtrace<\/code> is the equivalent.<\/p>","protected":false},"excerpt":{"rendered":"<p>strace is pretty handy on Linux for profiling processes, including attaching to a running one and WTF-ing it. It turns out that there&#8217;s a Mac equivalent, dtrace 1. If you skip past the instructions on how to use the terminal &hellip; <a href=\"https:\/\/blogs.n1zyy.com\/n1zyy\/2014\/12\/15\/dtrace-for-mac\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3967","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/posts\/3967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/comments?post=3967"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/posts\/3967\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/media?parent=3967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/categories?post=3967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/tags?post=3967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}