A few spy tools for your operating system (other than strace)
jvns.ca
jvns.ca
Mac OS X has a pretty nice set of DTrace scripts built in: http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scr...
The ones I use the most:
* iosnoop: see all disk I/O. especially useful to find disk-chatty/poll-y apps.
* execsnoop: see new processes being spawned.
* opensnoop: see file opens. especially useful for failed file opens that break an app.
* dtruss: see all system calls. get access to the entire OS interaction history of an process (or app).
* errinfo: trace failing system calls. where there is smoke...
* iotop -- who is using disk
There is just a crazy, crazy list of things available, built-in:
man -k dtrace
Edit: wow HN formatting sucks so bad. I wish I could make that list more readable, but apparently I can't. - Four spaces at the start of a line makes 'preformat',
useful for code or lists.
- You'll want to manually wrap long lines, though.But I don't want my descriptions to look like code!
Ideal for this example would be a table where the first column is formatted as code, and the second column as text.
•
$ pmap -x $$
13609: -bash
Address Kbytes RSS Dirty Mode Mapping
00110000 0 20 0 r-x-- libnss_compat-2.15.so
00117000 0 0 0 r---- libnss_compat-2.15.so
00118000 0 0 0 rw--- libnss_compat-2.15.so
00119000 0 20 0 r-x-- libnsl-2.15.so
[ ... snip ... ][1] https://www.linode.com/docs/uptime/monitoring/use-vmstat-to-...
I know there's more I'm not thinking of...