Add more memory profiling insights and groups
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user