Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main

#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
This commit is contained in:
Rolando Caloca
2020-02-12 13:27:19 -05:00
1390 changed files with 75239 additions and 59043 deletions
@@ -9,15 +9,12 @@ uint64 MemoryCheckpoint(const FString& Name)
#if PLATFORM_WINDOWS
return 0;
#else
TITLEMEMORYSTATUS TitleStatus;
TitleStatus.dwLength = sizeof(TitleStatus);
TitleMemoryStatus(&TitleStatus);
uint64_t UsedPhysical = FPlatformMemory::GetMemoryUsedFast();
static uint64 PeakMemory = 0;
FMemoryCheckpoint Check;
Check.Name = Name;
uint64_t UsedPhysical = TitleStatus.ullLegacyUsed + TitleStatus.ullTitleUsed;
static uint64_t FirstUsedPhysical = UsedPhysical;
Check.UsedPhysicalMB = UsedPhysical / double(1024 * 1024);