# EnableProfileConnection(string)

> Enables a connection to the Profiler. The standalone Profiler uses this method.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.MPE](/engine/6000.7/script-reference/unityeditor/mpe.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static int EnableProfileConnection(string dataPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Where to save profiling data. Normally this is set to [Application.dataPath](/engine/6000.7/script-reference/unityengine/application/datapath.md).

### Returns

| Type                                                       | Description                   |
| ---------------------------------------------------------- | ----------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Greater than 0 if successful. |
