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

◆ RequestImmediateData()

static bool EnProfiler::RequestImmediateData ( )
inlinestaticprivate

Helper method to ascertain the profiler will record [PD] right after this call.

Возвращает
bool Whether it was enabled before or not
bool wasEnabled = EnProfiler.RequestImmediateData();
Set of methods for accessing script profiling data.
Определения EnProfiler.c:73
static bool RequestImmediateData()
Helper method to ascertain the profiler will record [PD] right after this call.
Определения EnProfiler.c:745

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

746 {
747 // I only care if it is actually profiling right now, so C
748 bool wasEnabled = IsEnabledC();
749
750 if (!wasEnabled)
751 {
752 // I want the data, and I want it now, so immediate
753 Enable(true, true);
754 }
755
756 return wasEnabled;
757 }
static bool IsEnabledC()
Return if script profiling is actually turned on inside of the script context.
Определения EnProfiler.c:152
static proto void Enable(bool enable, bool immediate=false, bool sessionReset=true)
Enable the gathering of script profiling data.

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

Используется в EnProfilerTests::TestClassCountData(), EnProfilerTests::TestClassTimeData(), EnProfilerTests::TestFuncCountData(), EnProfilerTests::TestFuncTimeData() и EnProfilerTests::TestModule().