6#include "Containers/UnrealString.h"
7#include "Containers/Map.h"
12 void Add(
const TCHAR* StatDescription,
const SIZE_T StatValue )
14 Data.Add( FString(StatDescription), StatValue );
20#ifndef ENABLE_MEMORY_SCOPE_STATS
21#define ENABLE_MEMORY_SCOPE_STATS 0
28class FScopedMemoryStats
31 explicit FScopedMemoryStats(
const TCHAR* Name);
33 ~FScopedMemoryStats();
37 const FPlatformMemoryStats StartStats;
48
49
50
51
52#ifndef ENABLE_SHARED_MEMORY_TRACKER
53#define ENABLE_SHARED_MEMORY_TRACKER 0
58class FSharedMemoryTracker
63 static void PrintMemoryDiff(
const TCHAR* Context);
67 explicit FSharedMemoryTracker(
const FString& InContext);
68 ~FSharedMemoryTracker();
71 const FString PrintContext;
72 const FExtendedPlatformMemoryStats StartStats;
#define ENABLE_MEMORY_SCOPE_STATS
#define ENABLE_SHARED_MEMORY_TRACKER
FScopedMemoryStats(const TCHAR *Name)
static void PrintMemoryDiff(const TCHAR *)
FSharedMemoryTracker(const FString &)
TMap< FString, SIZE_T > Data
void Add(const TCHAR *StatDescription, const SIZE_T StatValue)