Daily iOS
Performance and debugging

Diagnosing hangs

Users report that a certain screen occasionally freezes for about a second, but you can't reproduce it in development. How do you narrow down the cause?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Get real-user stacks from MetricKit's hang diagnostic and the Organizer Hangs report, then find what blocks the main thread (synchronous I/O, locks, semaphore waits) with the Instruments Hangs template and the Thread Performance Checker.

Share a question