# StopProfileCapture()

> Retrieves 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.7/script-reference/unityeditor/build/content.md)
* **Assembly:** UnityEditor.CoreModule

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

### Returns

| Type                                                                                                                  | Description                                                                                    |
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [ContentBuildProfileEvent\[\]](/engine/6000.7/script-reference/unityeditor/build/content/contentbuildprofileevent.md) | An array of ContentBuildProfileEvent structs that contain information for each captured event. |

### Remarks

Throws an InvalidOperationException if no profile capture has started.
