How to find the cause of a 100% CPU usage on an iPhone App

前端 未结 1 1421
小鲜肉
小鲜肉 2021-02-13 04:41

I\'ve diagnosed a strange behavior in an app : after 10 minutes or so, the CPU usage goes to 100%. There\'s no leak in the app, and it happens while the app is doing nothing.

1条回答
  •  醉梦人生
    2021-02-13 05:35

    When profiling with Instruments (Time Profiler), look to see what method is using the majority of CPU time. Trace the calls back to see why.

    0 讨论(0)
提交回复
热议问题