非托管内存怎么计算?

非托管内存怎么计算?

这个计算是否准备,或者差不多也行,我理解是差不多的
Process.GetCurrentProcess().WorkingSet64 - Gc.GetGCMemoryInfo().HeapSizeBytes