EM_Task/CoreUObject/Public/UObject/UObjectClusters.h

30 lines
932 B
C
Raw Permalink Normal View History

2026-02-13 16:18:33 +08:00
// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
UObjectClusters.h: Unreal UObject Cluster helper functions
=============================================================================*/
#pragma once
#include "CoreMinimal.h"
#ifndef UE_GCCLUSTER_VERBOSE_LOGGING
#define UE_GCCLUSTER_VERBOSE_LOGGING (0 && !UE_BUILD_SHIPPING)
#endif
#if !UE_BUILD_SHIPPING
// Dumps a single cluster to log
COREUOBJECT_API void DumpClusterToLog(const struct FUObjectCluster& Cluster, bool bHierarchy, bool bIndexOnly);
// Dumps all clusters to log.
COREUOBJECT_API void ListClusters(const TArray<FString>& Args);
// Attempts to find clusters with no references to them
COREUOBJECT_API void FindStaleClusters(const TArray<FString>& Args);
#endif // !UE_BUILD_SHIPPING
// Whether object clusters can be created or not.
bool CanCreateObjectClusters();