Skip to main content

ProcessMetrics.MemoryCounters

A struct in Root.Township, the global namespace.

Mirror of the Windows PROCESS_MEMORY_COUNTERS struct, filled by GetProcessMemoryInfo. Sizes are in bytes.

Fields​

MemberWhat it is
int cbSize of the struct in bytes, as Windows expects. RAM passes the size as a separate argument and leaves this at 0.
int PageFaultCountNumber of page faults the process has had.
IntPtr PagefileUsageBytes of private memory committed for the process (pagefile usage).
IntPtr PeakPagefileUsageHighest PagefileUsage seen over the process's life.
IntPtr PeakWorkingSetSizeHighest working set size seen over the process's life.
IntPtr QuotaNonPagedPoolUsageCurrent non-paged pool usage.
IntPtr QuotaPagedPoolUsageCurrent paged pool usage.
IntPtr QuotaPeakNonPagedPoolUsageHighest non-paged pool usage seen.
IntPtr QuotaPeakPagedPoolUsageHighest paged pool usage seen.
IntPtr WorkingSetSizeCurrent working set (physical memory in use). This is what ProcessMetrics.RAM returns.

Used in​

Members of other types that take, return or hold a MemoryCounters: