Files
tldr/pages/osx/dtrace.md
Vitor Henrique d0a73c4b9c pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names

* pages*: fix brand and technical names

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git

* bzegrep: enclose egrep with backticks

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* git-bug: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* git-bug: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* git-force-clone: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* gitwatch: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* hub-init: use Git instead of `git`

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

* pages.*: use Linux instead of GNU/Linux

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 12:46:32 +08:00

1.1 KiB

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://www.unix.com/man-page/osx/1/dtrace/.

  • Set target data model for a specific architecture:

dtrace -arch {{arch_name}}

  • Claim [a]nonymous tracing state and display the traced data:

dtrace -a

  • Set principal trace buffer size. Supported units are k, m, g, or t:

dtrace -b {{2g}}

  • Compile the specified D Program [s]ource file:

dtrace -s {{D_script}}

  • Run the specified [c]ommand and exit upon its completion:

dtrace -c {{command}}

  • Specify [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:

dtrace -f {{function}}

  • Grad the specified [p]rocess ID, cache its symbol table, and exit upon completion:

dtrace -p {{pid}}

  • Combine different options for tracing function in a process:

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