[英]iPhone battery drain issue
I think my question will be useful for others. 我认为我的问题对其他人有用。 I have battery drain issue and want to find out where it is. 我有电池耗尽问题,想知道它在哪里。
I use xcode instruments: Enter profile 我使用xcode工具:输入个人资料 then Energy Diagnostics, but I see nothing in energy usage section. 然后是Energy Diagnostics,但我在能源使用方面没有看到任何内容。
How can I enable information in Energy Usage section? 如何在“能源使用”部分中启用信息?
Energy profiling is a bit more tricky. 能量分析有点棘手。 You need to: 你需要:
Now you'll see the energy usage statistics. 现在您将看到能源使用情况统计数据。
Did you enable energy logging on your iPad? 您是否在iPad上启用了能量记录功能?
https://developer.apple.com/library/ios/recipes/Instruments_help_articles/LoggingEnergyUsageinaniOSDevice/LoggingEnergyUsageinaniOSDevice.html https://developer.apple.com/library/ios/recipes/Instruments_help_articles/LoggingEnergyUsageinaniOSDevice/LoggingEnergyUsageinaniOSDevice.html
You can also try to log the power consumption programatically. 您还可以尝试以编程方式记录功耗。
Several ways of doing this can be found in the BatteryChart project: https://github.com/nst/BatteryChart 有几种方法可以在BatteryChart项目中找到: https : //github.com/nst/BatteryChart
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.