# Capacity

> Maximum amount of samples ProfilerRecorder can capture.

## Definition

* **Type:** Property
* **Namespace:** [Unity.Profiling](/engine/6000.3/script-reference/unity/profiling.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int Capacity { get; }
```

### Remarks

Shows the maximum amount of samples the ProfilerRecorder can capture. You can use this to set a maximum array size when you copy collected sample data with [ProfilerRecorder.CopyTo](/engine/6000.3/script-reference/unity/profiling/profilerrecorder/copyto.md) or [ProfilerRecorder.GetSample](/engine/6000.3/script-reference/unity/profiling/profilerrecorder/getsample.md) methods.
