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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With