ios - iOS 应用程序的功耗

标签 ios iphone xcode instruments

我想检查我的 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/

相关文章:

ios - 使用 ReactiveCocoa 创建移动平均线(和其他 FIR 滤波器)

iOS "calculationMode"等效的 Android 动画

ios - 匹配字符串模式,包括 Swift 中的变量部分

swift - Safari 扩展无法执行 URLSession 任务,错误为 : failed path:/var/run/mDNSResponder Operation not permitted

ios - Swift 中出现的 RGB 问题

iphone - 如何更改 PHAssetCollection 列表的顺序

iphone - UIImageView边框问题

iphone - 判断UITableViewController中的编辑操作是删除还是添加

ios - 无法使用静态库创建存档

ios - 为什么我的 iOS 应用程序无法从 Firebase 数据库读取?