# getPerformanceData

Get performance data for a specific application. Returns system state information like cpu, memory, network traffic, and battery. Use `getPerformanceDataTypes()` to find available data types.

> **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.

## Usage[​](#usage "Direct link to Usage")

```
await browser.getPerformanceData(packageName, dataType, dataReadTimeout)
```

## Parameters[​](#parameters "Direct link to Parameters")

| Name                              | Type     | Details                                                             |
| --------------------------------- | -------- | ------------------------------------------------------------------- |
| `packageName`                     | `string` | The package name of the application to get performance data for     |
| `dataType`                        | `string` | The type of performance data to retrieve (e.g. cpuinfo, memoryinfo) |
| `dataReadTimeout`<br />*optional* | `number` | Timeout in seconds to wait for the data to be read                  |

## Example[​](#example "Direct link to Example")

getPerformanceData.js

```
it('should get performance data for an app', async () => {
    // Get available data types first
    const types = await browser.getPerformanceDataTypes()
    // Get CPU info for an app
    const cpuData = await browser.getPerformanceData('com.example.app', 'cpuinfo', 5)
})
```

## Returns[​](#returns "Direct link to Returns")

* **<`Promise<string[]>`>** **`returns`:** Performance data for the requested type

## Support[​](#support "Direct link to Support")

![Support for android](/assets/images/android-d941e94d5839760141de31c8446b67ce.svg)

**Supported platforms:** Android

note

Refer to the official [Appium driver documentation](https://appium.io/docs/en/latest/ecosystem/) to see which driver versions support this command.
