ScriptAudit

ScriptAudit

#Overview

name: ScriptAudit

This variable is created as a Console Variable (cvar).

It is referenced in 2 C++ source files.

#Summary

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/Core/Public/Misc/CoreMisc.h:338

Scope: file

Source code excerpt:

#endif

/** This define enables ScriptAudit exec commands */
#ifndef SCRIPT_AUDIT_ROUTINES
	#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
		#define SCRIPT_AUDIT_ROUTINES 1
	#else
		#define SCRIPT_AUDIT_ROUTINES 0
	#endif

#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:1904

Scope: file

Source code excerpt:

	// FSelfRegisteringExec:
	virtual bool Exec_Runtime(UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar) override;
} ScriptAudit;

bool FScriptAuditExec::Exec_Runtime(UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar)
{
	if (FParse::Command(&Cmd, TEXT("ScriptAudit")))
	{
		FString ParsedCommand = FParse::Token(Cmd, 0);

		if (ParsedCommand.Equals(TEXT("LongestFunctions"),ESearchCase::IgnoreCase))
		{
			int32 NumToOutput = 20;