了解如何使用 DTrace 的指针
当我询问用于分析 Rails 应用程序的工具时,有人 指出在DTrace。 由于我在 MacOSX 站上工作并在 OpenSolaris 上部署,因此这是一种有效的方法。 但我对 DTrace 知之甚少。
除了常见的嫌疑人 Sun DTrace 页面和那里的可用信息之外,还有其他学习 Dtrace 的杀手级指针吗?
When I asked for tools to profile Rails apps, someone pointed at DTrace. Since I work on MacOSX stations and deploy on OpenSolaris, it is a valid way to go. But I have little knowledge of DTrace.
Besides the usual suspect, Sun DTrace page and the avaliable info there, is there any other killer pointer to learn Dtrace out there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我制作了一个 35 分钟的视频,并展示了一些 DTrace 入门示例,您可以在这里找到:http://cocoasamurai.blogspot.com/2008/05/dtrace-for-cocoa-developers.html 旨在向 Cocoa 开发人员介绍 DTrace,但它确实适用于任何人
I did a 35 min video and showed some DTrace starter examples that you can find here: http://cocoasamurai.blogspot.com/2008/05/dtrace-for-cocoa-developers.html which were intended for introducing DTrace to Cocoa Developers, but it can work for anybody really
观看 Brian Cantrill DTrace 视频。 这是一个很棒的基于演示的演讲,Cantrill 是 DTrace 的创建者之一。
http://video.google.com/videoplay?docid=-8002801113289007228
Watch the Brian Cantrill DTrace video. This is a great demo-based talk and Cantrill is one of the DTrace creators.
http://video.google.com/videoplay?docid=-8002801113289007228
我发现阅读 Mac OS X 常用管理监控工具的 dtrace 版本有很大帮助
truss
->dtruss
。 您可以阅读至少十几种不同的脚本。 (大多数以“d”开头。)还有
/Developer/Applications/Instruments.app
这是一个生成 dtrace 脚本的图形应用程序。此外,维基百科的 DTrace 页面有大量应该有所帮助的链接。
I found that reading dtrace version of the usual admin monitoring tools of Mac OS X was a great help
truss
->dtruss
. There are at least a dozen different scripts that you can read. (Most begining by "d".)There also is
/Developer/Applications/Instruments.app
which is a graphical app which generates dtrace scripts.Also, Wikipedia's DTrace page has loads of links which should help.
这可能太晚了,无法发挥作用,但 Adam Leventhal 的 DTrace 训练营演示非常适合入门:
http://blogs.oracle.com/roller/resources/ahl/dtrace_course.2005.8.18.pdf
This is probably way too late to be useful, but Adam Leventhal's DTrace boot camp presentation is great for getting started:
http://blogs.oracle.com/roller/resources/ahl/dtrace_course.2005.8.18.pdf
您还可以尝试“dtrace 工具包”,它具有用于大量监视目的的脚本,可以帮助您快速启动。
您还可以将 X-Code 的“工具”附加到任何进程。 在这让您对您的应用程序有一个总体了解之后,您可以尝试编写自己的脚本
You can also try the "dtrace toolkit" it has scripts for lots of monitoring purposes to give you a kick start.
Also you can attach X-Code's "Instruments" to any process. After this gives you a general idea of your app you can give a try to write your own scripts