dtrace

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 information: https://keith.github.io/xcode-man-pages/dtrace.1.html.

dtrace -arch arch_name

dtrace -a

dtrace -b 2g

dtrace -s D_script

dtrace -c command

dtrace -f function

dtrace -p pid

dtrace -a -b buffer_size -f function -p pid