Analysis of CPU usage of iOS application

I am working on an application that creates a plugin similar to an interface (e.g. iPhone home screen). I have several pages and each page contains many subheadings. Each subheading is capable of detecting a touch and hold event. As soon as the touch and hold event is recognized, all subitems begin to oscillate.

One of the problems I am facing is that the CPU load increases to 99% when the sub-items are in the wobble state, and I change the page.

Tools have a tool called "CPU Sampler". I can not find a good set of documentation for this tool. I do not know how to read the result generated by this tool. Can someone give me a little tutorial or recommendations? Can I check which part of the code is responsible for CPU activity?

+4
source share
2 answers

Go to the video recording of the WWDC 2010 session and select Session 135 - Advanced Performance Optimization on iPhone OS. This explains quite a bit about the Core Animations tool.

+1
source

I don’t know about CPU Sampler, but I think you can find something useful in this link related to your question.

http://www.informit.com/articles/article.aspx?p=1229351

0
source

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


All Articles