dtrace
macos
A simple interface to invoke the D language compiler, retrieve buffered trace and print traced data from the DTrace kernel facility. Generic front-end to DTrace facility, requiring root privileges.
More info →Examples (8)
Set target data model for a specific architecture
dtrace -arch arch_nameClaim [a]nonymous tracing state and display the traced data
dtrace -aSet principal trace buffer size. Supported units are `k`, `m`, `g`, or `t`
dtrace -b 2gCompile the specified D Program [s]ource file
dtrace -s D_scriptSpecify [f]unction name to trace or list (-l option). The corresponding argument can include any of the probe description forms like `provider:module:function`, `module:function`, or `function`
Grad the specified [p]rocess ID, cache its symbol table, and exit upon completion
dtrace -p pidmade by @shridhargupta | data from tldr-pages