dtruss: add page (#23544)

Co-authored-by: Harshavardhan <harsha.manjula.venkataramanan@gmail.com>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
This commit is contained in:
allispaul
2026-08-17 21:26:43 +02:00
committed by GitHub
co-authored by Harshavardhan Wiktor Perskawiec
parent 685b07c336
commit 5681513e8d
+30
View File
@@ -0,0 +1,30 @@
# dtruss
> Trace system calls and kernel activities on `osx` using DTrace.
> Note: Requires System Integrity Protection to be disabled.
> See also: `strace`.
> More information: <https://keith.github.io/xcode-man-pages/dtruss.1m.html>.
- Trace a running process by PID:
`sudo dtruss -p {{pid}}`
- Run a program and trace it:
`sudo dtruss {{program}}`
- [W]ait for a process with a matching name and trace it:
`sudo dtruss -W {{name}}`
- Print [e]lapsed time, [o]n-cpu time, and [c]ount of each system call:
`sudo dtruss -eoc -p {{pid}}`
- Trace a process and [f]ollow children:
`sudo dtruss -f -p {{pid}}`
- Print occurrences of a specific system call:
`sudo dtruss -t {{syscall}} -p {{pid}}`