GetHangLogs.sh

From The Apple Wiki

getHangLogs.sh samples SpringBoard and CommCenter and then writes the contents of all logs to a single file in /Library/Logs/CrashReporter/, along with information about any currently running processes.