# Collect performance data on a target platform

> Connect the Profiler to a device that's running your application.

Record performance data with the Unity Profiler on a target platform.

You can record the performance of your application on your chosen release platform to discover realistic performance metrics about your application. The Profiler can connect to your application when it's running on a target device in the following ways:

* Via the local network
* Directly via cable
* Via IP address

> **Note:**
>
> Profiling on the Web platform has a different workflow. To profile Web builds, refer to [Profile a Web build](/engine/6000.7/manual/platform-specific/webgl/building-distribution/web-profile.md).

## Connect your application to the Profiler

To connect your application to the Profiler:

1. Open the **Build Profiles** window (menu: **File > Build Profiles**)

2. Select your application’s target platform

3. Enable the Development Build setting

   1. Optionally enable the **Autoconnect Profiler** setting to automatically connect to the Profiler
   2. Optionally enable **Deep Profiling Support** to use [Deep Profiling](/engine/6000.7/manual/analysis/profiler/deep-profiling.md)

4. Select **Build and Run**, and make sure your application is running on your target device.

5. Open the Profiler window (menu: **Window** > **Analysis** > **Profiler**). If you enabled the **Autoconnect Profiler** setting, the Profiler automatically collects data.

6. If the **Autoconnect Profiler** setting is disabled, Select the Target Selection dropdown menu, next to the Record icon (⏺), and select the target player from the list.

7. Select the Record icon


**Profiler window's Target Selection dropdown:**
![](/api/media?file=/engine/6000.7/media/images/profiler-target-player.png)

If you’ve enabled the **Autoconnect Profiler** setting, the Profiler collects data as soon as you open the Profiler window, as long as your application is running. Otherwise, the Profiler window collects data when you select the target from the Target Selection dropdown and select Record.

### Connect to an application via IP address

To connect via IP address:

1. Open the Profiler window (menu: **Window** > **Analysis** > **Profiler**)
2. Select the Target Selection dropdown menu, next to the Record icon (⏺)
3. Select **\<Enter IP>** in the dropdown.
4. Enter the IP address in the dialog that appears, and optionally the port of the player you want to connect to.
5. Select the Record icon

## Continuously collect data

To continuously collect data while your application runs:

1. Open Player Settings (menu: **Edit > Project Settings > Player**)
2. Under Resolution and Presentation, enable **Run In Background**

## Additional resources

* [Collecting performance data on an Android device](/engine/6000.7/manual/platform-specific/android/developing/testing-and-debugging/profile-on-an-android-device.md)
* [Collecting performance data on an iOS device](/engine/6000.7/manual/platform-specific/iphone/ios-developing/ios-testing-and-debugging/ios-profile-device.md)
* [Collecting performance data in Play mode](/engine/6000.7/manual/analysis/profiler/profiling-applications/profiling-play-mode.md)
* [Collecting performance data about the Unity Editor](/engine/6000.7/manual/analysis/profiler/profiling-applications/profiling-edit-mode.md)
