DTrace provides dynamic tracing through the ability to instrument a running operating system kernel.
DTrace enables you to associate actions, such as collecting or printing stack traces, function arguments, timestamps, and statistical aggregates, with probes, which can be runtime events or source-code locations. The D language is powerful, yet simple. DTrace is dynamic, has low overhead, and is safe to use on production systems. It enables you to examine the behavior of user programs and the operating system, to understand how your system works, to track down performance problems, and to locate the causes of aberrant behavior.
Related
DTrace Module 2 - Going Further
Ol
Video
Ol-Dtrace
DTrace Module 1 - Getting Started
Ol
Video
Ol-Dtrace