Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
4.1 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATAMEM.h
  5. Abstract:
  6. Header file for the Windows NT Memory Performance counters.
  7. This file contains definitions to construct the dynamic data
  8. which is returned by the Configuration Registry. Data from
  9. various system API calls is placed into the structures shown
  10. here.
  11. Author:
  12. Bob Watson 28-Oct-1996
  13. Revision History:
  14. --*/
  15. #ifndef _DATAMEM_H_
  16. #define _DATAMEM_H_
  17. //
  18. // Memory Performance Counter
  19. //
  20. typedef struct _MEMORY_DATA_DEFINITION {
  21. PERF_OBJECT_TYPE MemoryObjectType;
  22. PERF_COUNTER_DEFINITION cdPageFaults;
  23. PERF_COUNTER_DEFINITION cdAvailablePages;
  24. PERF_COUNTER_DEFINITION cdCommittedPages;
  25. PERF_COUNTER_DEFINITION cdCommitList;
  26. PERF_COUNTER_DEFINITION cdWriteCopies;
  27. PERF_COUNTER_DEFINITION cdTransitionFaults;
  28. PERF_COUNTER_DEFINITION cdCacheFaults;
  29. PERF_COUNTER_DEFINITION cdDemandZeroFaults;
  30. PERF_COUNTER_DEFINITION cdPages;
  31. PERF_COUNTER_DEFINITION cdPagesInput;
  32. PERF_COUNTER_DEFINITION cdPageReads;
  33. PERF_COUNTER_DEFINITION cdDirtyPages;
  34. PERF_COUNTER_DEFINITION cdPagedPool;
  35. PERF_COUNTER_DEFINITION cdNonPagedPool;
  36. PERF_COUNTER_DEFINITION cdDirtyWrites;
  37. PERF_COUNTER_DEFINITION cdPagedPoolAllocs;
  38. PERF_COUNTER_DEFINITION cdNonPagedPoolAllocs;
  39. PERF_COUNTER_DEFINITION cdFreeSystemPtes;
  40. PERF_COUNTER_DEFINITION cdCacheBytes;
  41. PERF_COUNTER_DEFINITION cdPeakCacheBytes;
  42. PERF_COUNTER_DEFINITION cdResidentPagedPoolBytes;
  43. PERF_COUNTER_DEFINITION cdTotalSysCodeBytes;
  44. PERF_COUNTER_DEFINITION cdResidentSysCodeBytes;
  45. PERF_COUNTER_DEFINITION cdTotalSsysDriverBytes;
  46. PERF_COUNTER_DEFINITION cdResidentSysDriverBytes;
  47. PERF_COUNTER_DEFINITION cdResidentSysCacheBytes;
  48. PERF_COUNTER_DEFINITION cdCommitBytesInUse;
  49. PERF_COUNTER_DEFINITION cdCommitBytesLimit;
  50. PERF_COUNTER_DEFINITION cdAvailableKBytes;
  51. PERF_COUNTER_DEFINITION cdAvailableMBytes;
  52. // PERF_COUNTER_DEFINITION cdSystemVlmCommitCharge;
  53. // PERF_COUNTER_DEFINITION cdSystemVlmPeakCommitCharge;
  54. // PERF_COUNTER_DEFINITION cdSystemVlmSharedCommitCharge;
  55. } MEMORY_DATA_DEFINITION, * PMEMORY_DATA_DEFINITION;
  56. typedef struct _MEMORY_COUNTER_DATA {
  57. PERF_COUNTER_BLOCK CounterBlock;
  58. DWORD PageFaults;
  59. LONGLONG AvailablePages;
  60. LONGLONG CommittedPages;
  61. LONGLONG CommitList;
  62. DWORD WriteCopies;
  63. DWORD TransitionFaults;
  64. DWORD CacheFaults;
  65. DWORD DemandZeroFaults;
  66. DWORD Pages;
  67. DWORD PagesInput;
  68. DWORD PageReads;
  69. DWORD DirtyPages;
  70. LONGLONG PagedPool;
  71. LONGLONG NonPagedPool;
  72. DWORD DirtyWrites;
  73. DWORD PagedPoolAllocs;
  74. DWORD NonPagedPoolAllocs;
  75. DWORD FreeSystemPtes;
  76. LONGLONG CacheBytes;
  77. LONGLONG PeakCacheBytes;
  78. LONGLONG ResidentPagedPoolBytes;
  79. LONGLONG TotalSysCodeBytes;
  80. LONGLONG ResidentSysCodeBytes;
  81. LONGLONG TotalSysDriverBytes;
  82. LONGLONG ResidentSysDriverBytes;
  83. LONGLONG ResidentSysCacheBytes;
  84. DWORD CommitBytesInUse;
  85. DWORD CommitBytesLimit;
  86. LONGLONG AvailableKBytes;
  87. LONGLONG AvailableMBytes;
  88. // LONGLONG SystemVlmCommitCharge;
  89. // LONGLONG SystemVlmPeakCommitCharge;
  90. // LONGLONG SystemVlmSharedCommitCharge;
  91. } MEMORY_COUNTER_DATA, *PMEMORY_COUNTER_DATA;
  92. extern MEMORY_DATA_DEFINITION MemoryDataDefinition;
  93. #endif //_DATAMEM_H_
  94.