PROCESS_MEMORY_COUNTERS是一个基于计算机语言的统计计数功能且记录总数的功能函数。
PROCESS_MEMORY_COUNTERS是一个基于计算机语言的统计计数功能且记录总数的功能函数。
Function:Contains the memory statistics for a process.
Syntax:
typedef struct _PROCESS_MEMORY_COUNTERS {
DWORD cb;
DWORD PageFaultCount;
SIZE_T PeakWorkingSetSize;//
SIZE_T WorkingSetSize;
SIZE_T QuotaPeakPagedPoolUsage;
SIZE_T QuotaPagedPoolUsage;
SIZE_T QuotaPeakNonPagedPoolUsage;
SIZE_T QuotaNonPagedPoolUsage;
SIZE_T PagefileUsage;
SIZE_T PeakPagefileUsage;
} PROCESS_MEMORY_COUNTERS, *PPROCESS_MEMORY_COUNTERS;
Requirements:
Minimum supported client: Windows XP.
Minimum supported server: Windows Server 2003.
Header:Psapi.h
cb
Size of the structure, in bytes.
PageFaultCount
Number of page faults. // 缺页中断次数
PeakWorkingSetSize
Peak working set size, in bytes. // 使用内存高峰
WorkingSetSize
Current working set size, in bytes. // 当前使用的内存
QuotaPeakPagedPoolUsage
Peak paged pool usage, in bytes. // 使用页面缓存池高峰
QuotaPagedPoolUsage
Current paged pool usage, in bytes.// 使用页面缓存池
QuotaPeakNonPagedPoolUsage
Peak nonpaged pool usage, in bytes.// 使用非分页缓存池高峰
QuotaNonPagedPoolUsage
Current nonpaged pool usage, in bytes.// 使用非分页缓存池
PagefileUsage
Current space allocated for the pagefile, in bytes.Those pages may or may not be in memory.// 使用分页文件
PeakPagefileUsage
Peak space allocated for the pagefile, in bytes.// 使用分页文件高峰