DIFF

enum EnProfilerEnabledFlagsSource

There are 3 states which can be toggled that governs whether script profiling is enabled or not

NoteThe reason for this is because when it is enabled in debug menu, or through this API without 'immediate', it will only be enabled the next frame
NameValue
NONE

No flags, has value 0, so will count as false in conditions

DIAG

Script profiling UI is enabled in WIN+ALT debug menu, when this is true, it will override SCRP

SCRP

It has been set to being always enabled through EnProfiler (SCRipt Profiler)

SCRC

Whether profiling is currently truly happening (SCRipt Context)