能源使用仪器 - iOS
当我运行应用程序时,我试图测量 iPod 的能源使用水平。我将数据从设备导入到 Instruments 应用程序,能源使用级别显示条形图。但是,在“仪器”的详细信息窗格中,能源使用级别没有显示任何数字来指示我的设备中应用程序使用的能源级别。您知道如何获得该能源使用水平吗?我按照仪器文档中所述的步骤从 iOS 设备获取能源使用报告;我的 iOS 设备是 iPod touch 3G,我使用的是 Xcode 3.0。谢谢!
I'm trying to measure the energy usage level from my ipod when I run my application. I import the data from my device to Instruments app and the Energy usage level displays a bar graph. However, in the detail pane of Instruments the energy usage level don't show any number that indicate the level of energy used by the app in my device. Do you know how to get this energy usage level? I'm followed the steps stated in the Instruments Documentation to get the Energy Usage report from the iOS device; My iOS device is an ipod touch 3G and I'm using Xcode 3.0. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您必须先断开设备连接,测试您的应用程序,然后重新连接。在仪器中,选择 -> 文件 -> 从设备导入能量诊断
无论如何它都不准确,我想知道如何从能量水平(0-20)转换为实际单位。
You have to disconnect your device first, test your app, and reconnect. In instrument, select ->File ->Import Energy diagnostic From Device
It's not accurate anyway, I wonder how to translate from energy level (0-20) to real unit.
从左侧仪器列表中选择“能源使用”后,从菜单中选择“查看”->“能源使用”。 Detail ,或 Command + D 作为快捷方式。然后,您将看到包含能源使用级别的详细视图。
或者
移动您的检查头以查看能源使用水平
另请注意,在您的设备设置中 ->开发商->能源诊断记录(开/关开关),关闭此开关将重置以前的日志。
While you Energy Usage is selected from left hand Instruments list, from your menu select View -> Detail , or command + D for shortcut. You would then see detail view with Energy Usage Level.
Or
Move your inspection head to see Energy usage level
Also note that in your device settings -> Developer -> Energy diagnostics Logging (On/Off switch), turning this switch off would reset previous logs.
能源诊断还存在其他问题,即缺乏粒度且并不总是准确。我的公司编写了 Powergremlin 来解决这些问题,虽然非常简单,你可能会发现它很有用。
Energy Diagnostics has other problems, namely it lacks granularity and isn't always accurate. My company wrote Powergremlin to solve those problems and, while very simple, you might find it useful.
最后我找到了解决方案。我使用的是标记为第 3 代的 iPod,但由于它不起作用,我决定尝试使用 iPhone 3GS,它可以工作,能量级别使用情况显示在仪器中。
Finally I found a solution. I was using an ipod labeled as 3rd generation but as it didn't work I decided to try with an iPhone 3GS and it works, the energy level usage is shown in Instruments.