internal static void GetStackUsage( out ulong kernelStackCount, out ulong kernelStackReturnCount, out ulong kernelStackBytes, out ulong kernelStackReturnBytes, out ulong kernelStackReservation, out ulong userStackCount, out ulong userStackReturnCount, out ulong userStackBytes, out ulong userStackReturnBytes, out ulong userStackReservation ) { MemoryReservations.GetStackUsage( out kernelStackCount, out kernelStackReturnCount, out kernelStackBytes, out kernelStackReturnBytes, out kernelStackReservation, out userStackCount, out userStackReturnCount, out userStackBytes, out userStackReturnBytes, out userStackReservation ); }
internal static void GetUserStatistics(out ulong allocatedCount, out ulong allocatedBytes, out ulong freedCount, out ulong freedBytes) { if (useAddressTranslation) { ProtectionDomain.CurrentDomain.UserRange.GetUsageStatistics( out allocatedCount, out allocatedBytes, out freedCount, out freedBytes); } else { MemoryReservations.GetUserStatistics(out allocatedCount, out allocatedBytes, out freedCount, out freedBytes); } }