Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instruments doesn't show Energy Usage Level: it is empty

I have followed the Apple steps to get my app energy usage level from my device using Energy Diagnostics Instruments (https://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Built-InInstruments/Built-InInstruments.html#//apple_ref/doc/uid/TP40004652-CH6-SW63).

I have tried with my own app and with several apps from the AppStore and I always get all the info expected (including time flags) except the Energy Usage Info. Simply, the Energy Usage Bar doesn't show any graph (it does show the running time) and the Energy Consumption table (detail view) is always blank.

I am using an iPodTouch4 and XCode 4.2. What could be the problem? Do I need to do anything apart from Apple steps?

Thanks in advance.

like image 634
angeleke Avatar asked Mar 10 '12 11:03

angeleke


People also ask

What does the energy usage instrument indicate?

The Energy Usage instrument indicates a level from 0 to 20, indicating how much energy your app is using at any 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.

How do I know if my device is using enough energy?

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. Without tethering your device to Instruments (either wirelessly or wired), you can log energy-related data under normal use in order to take realistic measurements.

How do I log energy usage on my iOS device?

Log Energy Usage Directly on an iOS Device. Without tethering your device to Instruments (either wirelessly or wired), you can log energy-related data under normal use in order to take realistic measurements. With energy logging enabled, your iOS device records energy-related data unobtrusively while the device is used.

What is energy logging and how do I enable it?

Without tethering your device to Instruments (either wirelessly or wired), you can log energy-related data under normal use in order to take realistic measurements. With energy logging enabled, your iOS device records energy-related data unobtrusively while the device is used.


1 Answers

I've found Energy Diagnostics to have lackluster accuracy, so my company made Powergremlin which is simple, but much more accurate in our tests. It's open source, so just download & build it in Xcode.

like image 140
Drew Stephens Avatar answered Sep 21 '22 17:09

Drew Stephens