2

I want check power usage of my iOS application. I tried with the Instruments.

In the 'Energy Usage Level' it shows values 1/20 (0 to 20),indicating how much energy your app is using at any given time.

What the value meant 0 to 20?. And how Can I export the value in to text document

Edit : How can I convert it to percentage of energy usage ?

Vineesh TP
  • 7,755
  • 12
  • 66
  • 130

1 Answers1

1

What Apple mentioned is the following :

The Energy Usage instrument shows a level from 0 to 20, indicating how much energy your app is using at a given time. These numbers are subjective. If your app’s energy usage level is occasionally high, it doesn’t necessarily mean that your app has a problem. Your app may simply require more energy for some of the tasks it performs. For example, it may use GPS while performing complex network operations. This is valid energy use. What you should look for are spikes or areas of high energy use that are unexpected or that could be performed at more optimal times.

the numbers are subjective it just can be used as an indicator on how high your usage is, thats all.

the link also provides a way to log the energy usage level.

Mostafa Sultan
  • 2,268
  • 2
  • 20
  • 36
  • Is there any way to find the battery % used my application ? – Vineesh TP Feb 02 '17 at 08:28
  • Sorry couldn't find anything useful about that, here are other questions that have dead end too http://stackoverflow.com/questions/32819490/get-individual-app-battery-usage-ios – Mostafa Sultan Feb 02 '17 at 08:38
  • if my answer helped please set it as accepted answer since there is no better answer exists :) – Mostafa Sultan Feb 02 '17 at 11:32
  • I have asked this question based on the documentation as your answer. But, My questiion is what exact the values 0 to 20 indicates ? – Vineesh TP Feb 03 '17 at 03:21
  • @VineeshTP Disclaimer, I'm one of the sr. engineers at GameBench Our Desktop App that records performance metrics like FPS, CPU, GPU etc is currently in a closed beta for recording iOS power in mA. You can shoot us an email if you're looking to try it. – Xarus Mar 15 '17 at 16:06