我想检查我的 iOS 应用程序的电源使用情况。 我尝试使用 Instruments。
在“能源使用水平”中,它显示值 1/20(0 到 20),表示您的应用在任何给定时间使用了多少能源。
0 到 20 的值是什么意思?。 以及如何将值导出到文本文档
编辑:如何将其转换为能源使用百分比?
最佳答案
苹果提到的是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.
这些数字是主观的,它只是可以用作您的使用率有多高的指标,仅此而已。
该链接还提供了一种记录能源使用水平的方法。
关于ios - iOS 应用程序的功耗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41980624/