DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ IsEnabledC()

static bool EnProfiler::IsEnabledC ( )
inlinestaticprivate

Return if script profiling is actually turned on inside of the script context.

Заметки
When using "-profile" launch parameter, it will enable it through EnProfiler, so this will return true
Возвращает
bool Whether script is being profiled as of this moment
bool isScriptProfilingEnabled = EnProfiler.IsEnabledC();
Set of methods for accessing script profiling data.
Определения EnProfiler.c:73
static bool IsEnabledC()
Return if script profiling is actually turned on inside of the script context.
Определения EnProfiler.c:152

См. определение в файле EnProfiler.c строка 152

153 {
154 return (IsEnabled() & EnProfilerEnabledFlags.SCRC);
155 }
EnProfilerEnabledFlags
There are 3 states which can be toggled that governs whether script profiling is enabled or not.
Определения EnProfiler.c:44
static proto int IsEnabled()
Return if script profiling is enabled.

Перекрестные ссылки IsEnabled().

Используется в EnProfilerTests::EnProfilerTests(), RequestImmediateData() и EnProfilerTests::TestTogglingImmediate().