Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out the reason for high energy and cpu impact?

I wondering about my nearly finished app. It causing a CPU usage of always above 100% and my iPhone getting very hot even if it don't do anything.

My app just loading some json from the internet and displays that with some images and text. At the beginning I had a spinning image for showing loading process and thats nearly it.

I dont know how to find the part causing the usage.

enter image description here

Here are the two bad guys, but I don't know what they do and where they come from:

enter image description here

It's so wired, my mainView is a Tableview, if I do nothing I have that over 100% cpu usage, if I scroll up and down, it drops down to 70%/80%.

like image 960
kuemme01 Avatar asked Oct 18 '22 01:10

kuemme01


1 Answers

you said

At the beginning I had a spinning image for showing loading process

this is the key, even though you remove, hide or whatever you do to hide the spinning image, but seems like you're not stopping if from animating (spinning) , make sure the spinning image stops spinning animation befor hiding it

like image 91
Sameh Salama Avatar answered Oct 20 '22 22:10

Sameh Salama