Is there a way to capture the stack trace of all the threads of a running app from within the app and the put it in a text file which can be pushed to the server. This is required as many times after continuously running the app for months we are starting to see some weird problem like NSOperations queue failing which we can check using these threads. We don't want to crash the app to capture the data.