Hang detection

2012-07-29 Thread John MacMullin
My app hangs due to what appears to be two competing operations. Appears because other possible reasons may exist. How do I snapshot, debug or otherwise detect and obtain a stack trace of the code causing the hang? Best regards, John MacMullin ___

Re: Hang detection

2012-07-29 Thread Charlie Dickman
The way I would do it, even though it may be old fashioned, would be to define an int (or NSNumber) in each of the operations that could be involved in the hang (race condition) that is assigned a value other than 0 that uniquely represents the operation when it begins and set back to 0 when it

Re: Hang detection

2012-07-29 Thread Scott Ribe
Sample the process; see "man sample". On Jul 29, 2012, at 2:56 PM, John MacMullin wrote: > How do I snapshot, debug or otherwise detect and obtain a stack trace of the > code causing the hang? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___

Re: Hang detection

2012-07-29 Thread Scott Ribe
On Jul 29, 2012, at 4:49 PM, Scott Ribe wrote: > Sample the process; see "man sample". > > On Jul 29, 2012, at 2:56 PM, John MacMullin wrote: > >> How do I snapshot, debug or otherwise detect and obtain a stack trace of the >> code causing the hang? I was assuming of course, that you can't jus