Log energy usage directly on an iOS device

Log energy data in iOS

  1. Go to Settings > Developer > Logging on your device.

    Note: To see the Developer settings, you must provision the device for development and connect it to your Mac while Xcode or Instruments is running. If your device hasn’t been provisioned yet, see Configuring Your Xcode Project for Distribution and Launching Your App on Devices in App Distribution Guide. Even after the device has been provisioned, the Developer setting disappears when the device is rebooted or powered off. To restore the setting, reconnect the device to Xcode or Instruments.

  2. Enable energy logging.

  3. Tap Start Recording.

  4. Use your device normally.

  5. When you’re done, return to Settings > Developer > Logging and tap Stop Recording.

Import logged energy data from an iOS device

  1. Launch Instruments, and create a new trace document that targets your device and app with the Energy Log profiling template.

  2. Choose File > Import Logged Data from Device.

    The logged data is imported and displayed in the timeline and detail panes.

 

https://help.apple.com/instruments/mac/current/#/dev03a7149d

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值