I need to be able to show and capture the same output that
Xcode.app/Contents/Applications/Instruments.app captures while in Terminal.app (in the shell). Is there a
dtrace function / script, or some such equivalent, that can be run in order to capture this data directly?
Have you tried
-f filesys or
The fs_usage utility presents an ongoing display of system call usage information pertaining to filesystem activity. It requires root privileges due to the kernel tracing facility it uses to operate. By default, the activity monitored includes all system processes except the running fs_usage process, Terminal, telnetd, telnet, sshd, rlogind, tcsh, csh, sh, and zsh. These defaults can be overridden such that output is limited to include or exclude a list of processes specified by the user.