Parin Shah
Parin Shah

Reputation: 189

How to find battery usage of your iOS app

How do I check the battery usage in my iOS app?

What is the right way to do power consumption profiling?

Upvotes: 3

Views: 2382

Answers (1)

Mika
Mika

Reputation: 5845

xCode has a suite of instruments. One of them is called the energy usage and will give you metrics on your battery usage.

  1. On the device: Go to Settings > Developer > Logging, and turn on logging.
  2. Exercise your device as if you were a user.
  3. After capturing the data, turn off developer logging.

Upvotes: 1

Related Questions