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

◆ AddFlags()

static proto int EnProfiler::AddFlags ( int flags,
bool sessionReset = true )
staticprivate

Add flags to the currently used set of EnProfilerFlags across the API.

Заметки
Simply a helper method to quickly add EnProfilerFlags
Аргументы
flagsint The combination of desired EnProfilerFlags to be added to the currently used set
sessionResetbool When set to false, no [SR] will trigger, regardless of situation
Возвращает
int The currently used set of EnProfilerFlags after the function call
// In the case where the current set of EnProfilerFlags is EnProfilerFlags.RESET
// The resulting set of flags now will be EnProfilerFlags.RESET | EnProfilerFlags.RECURSIVE
// As the above is pretty much the same as the following
// EnProfiler.SetFlags(EnProfiler.GetFlags() | EnProfilerFlags.RECURSIVE);
// But a much cleaner and faster alternative (bitwise operations in script is ~10x slower than C++)
Set of methods for accessing script profiling data.
Определения EnProfiler.c:73
EnProfilerFlags
Flags that influences the behaviour of the EnProfiler API, applied through ...Flags functions.
Определения EnProfiler.c:9
static proto int AddFlags(int flags, bool sessionReset=true)
Add flags to the currently used set of EnProfilerFlags across the API.

Используется в EnProfilerTests::TestAddFlags().