# StopProfileCapture()

> Returns an array of ContentBuildProfileEvent structs that contain information for each occuring event. Also stops the profile capture.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build.Content](/engine/6000.3/script-reference/unityeditor/build/content.md)
* **Assembly:** UnityEditor

```csharp
public static ContentBuildProfileEvent[] StopProfileCapture()
```

### Returns

| Type                                                                                                                  | Description |
| --------------------------------------------------------------------------------------------------------------------- | ----------- |
| [ContentBuildProfileEvent\[\]](/engine/6000.3/script-reference/unityeditor/build/content/contentbuildprofileevent.md) |             |

### Remarks

Throws an InvalidOperationException if no profile capture has started.
