Version: 2023.1

ProfilerRecorderOptions

enumeration

切换到手册

描述

ProfilerRecorder lifecycle and collection options.

变量

StartImmediatelyUse to start data collection immediately upon ProfilerRecorder initialization.
KeepAliveDuringDomainReloadUse to keep the ProfilerRecorder unmanaged instance running across a Unity domain reload.
CollectOnlyOnCurrentThreadUse to collect samples only on the thread ProfilerRecorder was initialized on.
WrapAroundWhenCapacityReachedUse to allow sample value overwrite when ProfilerRecorder capacity is exceeded.
SumAllSamplesInFrameUse to sum all samples within a frame and collect those as one sample per frame.
GpuRecorderUse to indicate that ProfilerRecorder should collect GPU timing instead of CPU.
DefaultDefault initialization options. Equivalent to (SumSamplesInFrame | WrapAroundWhenCapacityReached).