ProfilerRecorderOptions
ProfilerRecorder lifecycle and collection options.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: Unity.Profiling
- Assembly: UnityEngine.CoreModule
[Flags]public enum ProfilerRecorderOptions
Fields
Value | Description |
|---|---|
| CollectOnlyOnCurrentThread | Use to collect samples only on the thread ProfilerRecorder was initialized on. |
| Default | Default initialization options. Equivalent to (SumSamplesInFrame | WrapAroundWhenCapacityReached). |
| GpuRecorder | Use to indicate that ProfilerRecorder should collect GPU timing instead of CPU. |
| KeepAliveDuringDomainReload | Use to keep the ProfilerRecorder unmanaged instance running across a Unity domain reload. |
| StartImmediately | Use to start data collection immediately upon ProfilerRecorder initialization. |
| SumAllSamplesInFrame | Use to sum all samples within a frame and collect those as one sample per frame. |
| WrapAroundWhenCapacityReached | Use to allow sample value overwrite when ProfilerRecorder capacity is exceeded. |