Is there a way to identify the exact place in the code (for example, a long-term function or wait for a lock) that causes the frame to drop using tools and / or Xcode?
I try to make the scroll of my scroll view as smooth as possible, and the FPS sometimes drops to 59 or even 58, and about 60 years is about half, so I would like to know what exactly is causing this.
I turned on the Record Waiting Threads
flag in the CPU Usage
tool of the Core Animation
template, and it occasionally shows needle bursts with 100% use of each core (close to seconds with dropped frames), but I canβt figure out how to determine the exact location in to the code causing the crash - all the called functions are rather weakly influenced in one-bit percent (so it can be very good the thread expects blocking).
source share