# Apple Power & Performance Metrics

<div align="left"><img src="https://727226624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjFmyReUsbJqDjHEAlW%2Fuploads%2F763J0EXPZ0SWtdFEXfNI%2Fapple-power-and-performance-metrics.png?alt=media&#x26;token=0fe58a95-c898-455b-9be5-6c58a917f601" alt=""></div>

## Set up

### Navigate to the Integration settings view

1. Select an app in the top left corner from the Switcher
2. Navigate to **App Settings** by clicking the gear icon (⚙️) at the top of the Timeline sidebar
3. Click on **Integrations** in the sidebar

### **Connect Apple Power & Performance Metrics**

* Find the **Apple Power & Performance** integration module under the **Observability & analytics** section
* Click the **Connect** button
* Enter your ASC API key’s Key ID and Issuer ID, and upload the `.p8` key file
* Click **Save**; you’ll be presented with a dialog in which to select one or more metrics to monitor. Each metric offers 50th and 90th percentile measures, and available metric types include:
  * Disk writes
  * Hang rate
  * Battery usage (overall, on screen, background)
  * Launch time
  * Peak memory usage
  * Memory at suspension
  * Scroll hitch rate
  * Terminations (on screen, background)

{% hint style="info" %}
You can generate API keys within App Store Connect.

* You must be logged into App Store Connect with an **Admin** account to generate API keys.
* Runway requires an API key with the **App Manager** role.
* Runway currently supports **Team** private keys only.&#x20;

:link: [**Apple - Creating API Keys for App Store Connect API**](https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api)
{% endhint %}

![Issuer ID, Key ID, and download link from the Users and Access section in App Store Connect](https://727226624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MjFmyReUsbJqDjHEAlW%2Fuploads%2FRlJlzRZeJyCoS3nF2ubp%2Fimage.png?alt=media\&token=888a74b6-3f1f-4035-8840-866879d3b884)
