# ProfilerRecorderOptions

> ProfilerRecorder lifecycle and collection options.

## Definition

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

```csharp
[Flags]
public enum ProfilerRecorderOptions
```

## Fields

| Value                                                                                                                                     | Description                                                                                         |
| ----------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [CollectOnlyOnCurrentThread](/engine/6000.6/script-reference/unity/profiling/profilerrecorderoptions/collectonlyoncurrentthread.md)       | Use to collect samples only on the thread ProfilerRecorder was initialized on.                      |
| [Default](/engine/6000.6/script-reference/unity/profiling/profilerrecorderoptions/default.md)                                             | Default initialization options. Equivalent to (SumSamplesInFrame \| WrapAroundWhenCapacityReached). |
| [GpuRecorder](/engine/6000.6/script-reference/unity/profiling/profilerrecorderoptions/gpurecorder.md)                                     | Use to indicate that ProfilerRecorder should collect GPU timing instead of CPU.                     |
| [KeepAliveDuringDomainReload](/engine/6000.6/script-reference/unity/profiling/profilerrecorderoptions/keepaliveduringdomainreload.md)     | Use to keep the ProfilerRecorder unmanaged instance running across a Unity domain reload.           |
| [StartImmediately](/engine/6000.6/script-reference/unity/profiling/profilerrecorderoptions/startimmediately.md)                           | Use to start data collection immediately upon ProfilerRecorder initialization.                      |
| [SumAllSamplesInFrame](/engine/6000.6/script-reference/unity/profiling/profilerrecorderoptions/sumallsamplesinframe.md)                   | Use to sum all samples within a frame and collect those as one sample per frame.                    |
| [WrapAroundWhenCapacityReached](/engine/6000.6/script-reference/unity/profiling/profilerrecorderoptions/wraparoundwhencapacityreached.md) | Use to allow sample value overwrite when ProfilerRecorder capacity is exceeded.                     |
