Constructs a watchdog that checks the UI thread every given interval. TimeoutInterval: The interval, in milliseconds, between two checks of the UI thread. It is therefore the maximum time the UI may freeze before being reported as ANR. EvtPrefix: Prefix of the ApplicationNotResponding and Interrupted event handlers.
Converts a StackOverflow error to a Runtime exception, allowing to catch it. The error message ends with STACK_OVERFLOW. Once this error caught, get the stack trace elements with GetStackTraceElements.
Returns an array of stack trace elements after an OutOfMemory or StackOverflow error is thrown.