mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
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:
co-authored by
Harshavardhan
Wiktor Perskawiec
parent
685b07c336
commit
5681513e8d
@@ -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}}`
|
||||
Reference in New Issue
Block a user