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.

105 lines
3.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATAPHYS.h
  5. Abstract:
  6. Header file for the Windows NT Processor 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 _DATAPHYS_H_
  16. #define _DATAPHYS_H_
  17. //
  18. // physical disk performance definition structure
  19. //
  20. typedef struct _PDISK_DATA_DEFINITION {
  21. PERF_OBJECT_TYPE DiskObjectType;
  22. PERF_COUNTER_DEFINITION cdDiskCurrentQueueLength;
  23. PERF_COUNTER_DEFINITION cdDiskTime;
  24. PERF_COUNTER_DEFINITION cdDiskTimeTimeStamp;
  25. PERF_COUNTER_DEFINITION cdDiskAvgQueueLength;
  26. PERF_COUNTER_DEFINITION cdDiskReadTime;
  27. PERF_COUNTER_DEFINITION cdDiskReadTimeTimeStamp;
  28. PERF_COUNTER_DEFINITION cdDiskReadQueueLength;
  29. PERF_COUNTER_DEFINITION cdDiskWriteTime;
  30. PERF_COUNTER_DEFINITION cdDiskWriteTimeTimeStamp;
  31. PERF_COUNTER_DEFINITION cdDiskWriteQueueLength;
  32. PERF_COUNTER_DEFINITION cdDiskAvgTime;
  33. PERF_COUNTER_DEFINITION cdDiskTransfersBase1;
  34. PERF_COUNTER_DEFINITION cdDiskAvgReadTime;
  35. PERF_COUNTER_DEFINITION cdDiskReadsBase1;
  36. PERF_COUNTER_DEFINITION cdDiskAvgWriteTime;
  37. PERF_COUNTER_DEFINITION cdDiskWritesBase1;
  38. PERF_COUNTER_DEFINITION cdDiskTransfers;
  39. PERF_COUNTER_DEFINITION cdDiskReads;
  40. PERF_COUNTER_DEFINITION cdDiskWrites;
  41. PERF_COUNTER_DEFINITION cdDiskBytes;
  42. PERF_COUNTER_DEFINITION cdDiskReadBytes;
  43. PERF_COUNTER_DEFINITION cdDiskWriteBytes;
  44. PERF_COUNTER_DEFINITION cdDiskAvgBytes;
  45. PERF_COUNTER_DEFINITION cdDiskTransfersBase2;
  46. PERF_COUNTER_DEFINITION cdDiskAvgReadBytes;
  47. PERF_COUNTER_DEFINITION cdDiskReadsBase2;
  48. PERF_COUNTER_DEFINITION cdDiskAvgWriteBytes;
  49. PERF_COUNTER_DEFINITION cdDiskWritesBase2;
  50. PERF_COUNTER_DEFINITION cdIdleTime;
  51. PERF_COUNTER_DEFINITION cdIdleTimeTimeStamp;
  52. PERF_COUNTER_DEFINITION cdSplitCount;
  53. } PDISK_DATA_DEFINITION, * PPDISK_DATA_DEFINITION;
  54. typedef struct _PDISK_COUNTER_DATA {
  55. PERF_COUNTER_BLOCK CounterBlock;
  56. DWORD DiskCurrentQueueLength;
  57. LONGLONG DiskTime;
  58. LONGLONG DiskAvgQueueLength;
  59. LONGLONG DiskReadTime;
  60. LONGLONG DiskReadQueueLength;
  61. LONGLONG DiskWriteTime;
  62. LONGLONG DiskWriteQueueLength;
  63. LONGLONG DiskAvgTime;
  64. LONGLONG DiskAvgReadTime;
  65. DWORD DiskTransfersBase1;
  66. DWORD DiskReadsBase1;
  67. LONGLONG DiskAvgWriteTime;
  68. DWORD DiskWritesBase1;
  69. DWORD DiskTransfers;
  70. DWORD DiskReads;
  71. DWORD DiskWrites;
  72. LONGLONG DiskBytes;
  73. LONGLONG DiskReadBytes;
  74. LONGLONG DiskWriteBytes;
  75. LONGLONG DiskAvgBytes;
  76. LONGLONG DiskAvgReadBytes;
  77. DWORD DiskTransfersBase2;
  78. DWORD DiskReadsBase2;
  79. LONGLONG DiskAvgWriteBytes;
  80. LONGLONG IdleTime;
  81. LONGLONG DiskTimeTimeStamp;
  82. DWORD DiskWritesBase2;
  83. DWORD SplitCount;
  84. } PDISK_COUNTER_DATA, * PPDISK_COUNTER_DATA;
  85. extern PDISK_DATA_DEFINITION PhysicalDiskDataDefinition;
  86. #endif // _DATAPHYS_H_