A curated list of awesome DTrace books, articles, videos, tools and resources.
Recommended reading for learning DTrace.
- Dynamic Tracing Guide - Illumos.org DTrace guide.
- DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X, and FreeBSD - Official DTrace book.
- Dynamic Tracing with DTrace & SystemTap - A book introduces both DTrace and SystemTap.
- dtrace(1m) man page - DTrace manual page.
- DTrace cheatsheet - DTrace cheatsheet by Brendan Gregg.
- DTrace one-liners - DTrace one liners. Handy commands.
- DTrace one-liners (FreeBSD) - DTrace one liners from FreeBSD.
- DTrace QuickStart - DTrace quick starting guide.
- Using DTrace stories - A collection of using DTrace to debug system stories.
- Advanced DTrace Tips, Tricks and Gotchas - A collection of advanced tips for using DTrace.
Interesting articles about DTrace and real-world use cases.
- pid provider: entry probe - DTrace PID Provider.
- pid provider: entry arguments - DTrace PID Provider Arguments.
- pid provider: return - DTrace PID Provider return.
- pid provider: instructions - DTrace PID Provider Instructions.
- pid provider: overhead - DTrace PID Provider Overhead.
- pid provider exposed - PID providers internals by Adam Leventhal.
- When magic collides - PID provider bug deep dive by Bryan Cantrill.
- Understanding DTrace ustack helpers - DTrace ustack helpers.
- USDT Providers Redux - Reference for building USDT providers in custom applications.
- DTrace sysevent provider - Solaris/illumos sysevent provider for DTrace.
- Using DTrace to measure mutex contention in Ruby - Mutex contention measuring in Ruby.
- Flamegraphs - A visualization of profiled software, allowing the most frequent code-paths to be identified quickly and accurately.
- Heat Maps - Heat maps allow three dimensions of data to be visualized, similar to weather radar maps where color is used as a dimension.
Interesting videos about DTrace.
- DTrace review - Bryan Cantrill explains how to significantly improve debugging both for development and live systems with DTrace.
-
- Introduction
- (Useful!) DTrace intro
- CTF Everywhere!
- Distributed DTrace
- DTracign Apps
- DTrace and JSON: Together at last!
- ASSERT() as a DTrace probe (and why I need some help)
- Implementing (or not) fds[] in FreeBSD
- OpenDTrace
- DTrace Performance Improvements with Always-on Instrumentation
- D language improvements
- D Syntactic Sugar
- DTrace and Go
- DTrace and Postgres
- DTrace in the Zone
- DTrace ustack() performance improvements
- DTrace Exploitation
List of software with DTrace support.
- Erlang - DTrace and Erlang/OTP.
- lua-usdt - Libusdt bindings for Lua.
- node-dtrace-provider - Native DTrace probes for Node.js apps.
- perl-Devel-DTrace-Provider - Perl wrapper for libusdt.
- PHP - Using PHP and DTrace.
- Python - DTrace patch for Python 2.7.x and 3.x.
- python-usdt - Libusdt bindings for Python.
- MySQL - MySQL DTrace probes.
- PostgreSQL - PostgreSQL DTrace probes.
- mod_usdt - "httpd" DTrace provider.
- FlameGraph - Stack trace visualizer.
- node-stackvis - Stack trace visualizer.
- DTraceToolkit - A collection of useful documented DTrace scripts.
- dtrace-cloud-tools - DTrace tools written for the SmartOS/SmartDataCenter cloud (illumos-based).
- pgsql tools - Report top-level PostgreSQL stats.
- portsnoop - Trace event port activity.
- storage tools - Report NFS, CIFS and iSCSI stats.
- Community site - DTrace community site.
- Mailing list - DTrace community mailing list.
- FreeBSD DTrace mailing list - FreeBSD DTrace community mailing list.
- China DTrace - A Chinese DTrace site.
Contributions are more than welcome! Please see contribution guidelines first.