I need to know the CPU% load of the iPhone but I can not find anything in Swift or Objective-C. I have found something that uses% of the total CPU application. Someone could help me with information or something.
Thanks
I need to know the CPU% load of the iPhone but I can not find anything in Swift or Objective-C. I have found something that uses% of the total CPU application. Someone could help me with information or something.
Thanks
The simplest way is to use Instruments. You can find it in the following menu:
From there, you choose the "Activity Monitor" option and you can see everything.
On the other hand, when you run the application you have a "pseudoinstruments" built into Xcode itself:
Once in that section, you can click on "CPU", "Memory", etc. and you will see a control panel where you can see the status of the app at all times of the execution.
UPDATE 1:
If instead you want to take the info directly to the app you can use this link that explains it and is a good starting point: link
Anyway, be careful because Apple has approved an application, it does not mean that now you accept it in the AppStore