Version: 2021.1
LanguageEnglish
  • C#

ProfilerRecorderOptions

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

ProfilerRecorder lifecycle and collection options.

Properties

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.
DefaultDefault initialization options. Equivalent to (SumSamplesInFrame | WrapAroundWhenCapacityReached).