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

ぐ巨炮叔叔 提交于 2020-01-01 04:26:25

问题


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.

I can profile this with instruments using the "Time Profiler", but is there a way to find what the actual cause is ?


回答1:


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.



来源:https://stackoverflow.com/questions/7388453/how-to-find-the-cause-of-a-100-cpu-usage-on-an-iphone-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!