gc.CalculateHistorySize

gc.CalculateHistorySize

#Overview

name: gc.CalculateHistorySize

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

It is referenced in 1 C++ source file.

#Summary

#References in C++ code

#Callsites

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

#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Private/UObject/GarbageCollectionHistory.cpp:27

Scope: file

Source code excerpt:


static FAutoConsoleCommand CmdCalculateGCHistorySize(
	TEXT("gc.CalculateHistorySize"),
	TEXT(""),
	FConsoleCommandWithArgsDelegate::CreateLambda([](const TArray<FString>& Args)
		{
			int64 TotalSize = FGCHistory::Get().GetAllocatedSize();
			UE_LOG(LogGarbage, Display, TEXT("Memory allocated for GC history: %lldb"), TotalSize);
		})