Add more memory profiling insights and groups

This commit is contained in:
Wojtek Figat
2025-05-28 04:03:44 +02:00
parent 72ee80242d
commit ab61ed5a37
16 changed files with 89 additions and 22 deletions

View File

@@ -1277,6 +1277,14 @@ namespace FlaxEngine.Interop
return GC.MaxGeneration;
}
[UnmanagedCallersOnly]
internal static void GCMemoryInfo(long* totalCommitted, long* heapSize)
{
GCMemoryInfo gcMemoryInfo = GC.GetGCMemoryInfo();
*totalCommitted = gcMemoryInfo.TotalCommittedBytes;
*heapSize = gcMemoryInfo.HeapSizeBytes;
}
[UnmanagedCallersOnly]
internal static void GCWaitForPendingFinalizers()
{