9DTrace
DTrace is a dynamic tracing facility developed by Sun Microsystems for the Solaris operating system. DTrace lets administrators and developers explore the system and understand how it works. It can help you track down program bugs and performance problems. DTrace was introduced with Mac OS X 10.5. Prior to 10.5, ktrace served a similar, but more limited, purpose.
Overview
The heart of DTrace is the probe, where a probe is a named point in executing code. There are probes corresponding to kernel events, function calls, Objective-C message sends, system calls, and many other interesting events, as shown in Figure 9.1. Mac OS X includes tens of thousands of probes, and the count grows with each new OS release. You can add probes to your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access