Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pointers to learn how to use 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?

like image 730
lsdr Avatar asked Dec 09 '08 14:12

lsdr


People also ask

How does DTrace work?

DTrace helps you understand a software system by enabling you to dynamically modify the operating system kernel and user processes to record additional data that you specify at locations of interest, called probes.

What are probes in DTrace?

DTrace allows developers to embed static probe points in application code, including both complete applications and shared libraries. These probes can be enabled wherever the application or library is running, either in development or in production.

What is dynamic tracing?

As a kind of post-modern advanced debugging technology, dynamic tracing allows software engineers to answer some tricky problems about software systems, such as high CPU or memory usage, high disk usage, long latency, or program crashes.


2 Answers

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

like image 104
Colin Wheeler Avatar answered Nov 13 '22 20:11

Colin Wheeler


  • DTrace one liners.
  • Dtrace CheatsSheets at SolarisInternal.
  • Advanced DTrace - Tips, Tricks and Gotchas
like image 7
philant Avatar answered Nov 13 '22 22:11

philant