IOS main theme freezes in seconds

I see how freezing main threads for several seconds in my application only on iOS 8 (not on previous versions of iOS).
I use @synchronised (self) in several places, as well as using the RemoteIO setting. My question is: how can I debug where exactly the main thread is blocked, and get additional information, for example, what is it doing at this time?

I am using Xcode 6, so please tell me the best way to debug.

EDIT: Here is the conclusion from the Pause.

enter image description here

enter image description here

+6
source share
1 answer

As a first step to understand what is going on, I would suggest just clicking Pause in the debugger while you are freezing. It will show you which thread is doing what at that moment.

You will see either a task that is still running, or a msg_trap line indicating that there is a lock somewhere.

Send here what you learned.

+9
source

Source: https://habr.com/ru/post/976284/


All Articles