文档

Unity Engine

Unity Engine

ProfilerRecorderOptions

ProfilerRecorder lifecycle and collection options.
阅读时间1 分钟最后更新于 1 个月前

Definition

[Flags]public enum ProfilerRecorderOptions

Fields

Value

Description

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