我正在尝试使用 Instrument 查找我的 iOS 应用程序的能源使用情况。
我得到了时间、总事件、前台应用事件、音频处理和 百分比格式的图形。前台应用程序事件、音频处理和 图形与总事件不同!
但我不明白这些列的含义是什么?谁能给我解释一下这些统计数据的含义以及如何使用它?
最佳答案
最新Energy Diagnostics文档说:
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.
关于ios - 解释iOS中Energy Usage Instrument的统计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13064468/