DTrace
lastmod 2026-11-10created 2016-12-252 edits
DTrace is a dynamic tracing framework that originated in Solaris. It attaches probes to the running kernel and user programs so that function calls, system calls, latency, and more can be observed without restarting. Short scripts written in the D language specify what data to collect and how to aggregate it, and it has been ported to macOS, FreeBSD, and others. This page collects material on tracing C++ programs.