Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can iOS7 untethered energy/network recordings be accessed?

iOS7 has a preference under " Preferences | Developer | Instruments / Logging | Untethered Recording" to record the energy and network usage data.

How do I extract this from the device to view in Xcode or Instruments?

like image 214
Luke Avatar asked Oct 10 '13 01:10

Luke


2 Answers

This basically records the same data that would get recorded if you were running the Energy Diagnostics or Network instruments while the device is plugged in, except it'll keep logging in the background all the time without the need for a tethered Instruments session.

You'll need to be running the version of Instruments provided in Xcode 5 (or newer) for this to work. Make sure you have you device plugged in before starting Instruments.

First step is to create a new Trace Document using the corresponding Instrument Template in Instruments' New screen:

Instruments New Screen

Now, in the File menu, a new option Import Logged Data from Device should be available, if you have your device plugged in.

Import Logged Data from Device

You should now see the results from your last run. You don't have to stop logging on your device to access this option, it'll just give you the data between when you started recording to when you pressed the import button.

like image 135
aethe Avatar answered Nov 08 '22 19:11

aethe


This Apple page explains the whole process: Energy Efficiency Guide for iOS Apps

To 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 Diagnostics profiling template. Choose Instruments template
  2. Choose File > Import Logged Data from Device.

Import Logged Data from Device

like image 26
inigo333 Avatar answered Nov 08 '22 21:11

inigo333