I've recently been told about a useful debugging tool on Mac OS X called stackshot
, however I don't know how to invoke it. My understanding from the documentation is that it runs as a daemon, but the man page also reads as if it can be invoked from the command line. How would I go about leveraging stackshot for my currently-running application?
views:
96answers:
1
+1
A:
sudo /usr/libexec/stackshot -i
Stackshot is intended for debugging system-wide issues (deadlocks etc), not single applications; as such it creates a stack dump of the entire system, not a single application.
With the default configuration, this will create a stack shot in /Library/Logs/stackshot.log
oefe
2009-12-16 20:36:40
Thanks; I discovered if you add `-p pid` to the command line you can stackshoot (sic) a single application to check for deadlocks therein.
fbrereto
2009-12-16 21:36:03