/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h
Returns non-zero if a performance-sensitive diagnostic, like a memory sanitizer, is detected for this process
static EProcessDiagnosticFlags GetProcessDiagnostics()