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.

81 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1995-6 Microsoft Corporation
  3. Module Name:
  4. DATASYS.h
  5. Abstract:
  6. Header file for the Windows NT Operating System 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 _DATASYS_H_
  16. #define _DATASYS_H_
  17. //
  18. // System data object
  19. //
  20. typedef struct _SYSTEM_DATA_DEFINITION {
  21. PERF_OBJECT_TYPE SystemObjectType;
  22. PERF_COUNTER_DEFINITION cdReadOperations;
  23. PERF_COUNTER_DEFINITION cdWriteOperations;
  24. PERF_COUNTER_DEFINITION cdOtherIOOperations;
  25. PERF_COUNTER_DEFINITION cdReadBytes;
  26. PERF_COUNTER_DEFINITION cdWriteBytes;
  27. PERF_COUNTER_DEFINITION cdOtherIOBytes;
  28. PERF_COUNTER_DEFINITION cdContextSwitches;
  29. PERF_COUNTER_DEFINITION cdSystemCalls;
  30. PERF_COUNTER_DEFINITION cdTotalReadWrites;
  31. PERF_COUNTER_DEFINITION cdSystemElapsedTime;
  32. PERF_COUNTER_DEFINITION cdProcessorQueueLength;
  33. PERF_COUNTER_DEFINITION cdProcessCount;
  34. PERF_COUNTER_DEFINITION cdThreadCount;
  35. PERF_COUNTER_DEFINITION cdAlignmentFixups;
  36. PERF_COUNTER_DEFINITION cdExceptionDispatches;
  37. PERF_COUNTER_DEFINITION cdFloatingPointEmulations;
  38. PERF_COUNTER_DEFINITION cdRegistryQuotaUsed;
  39. PERF_COUNTER_DEFINITION cdRegistryQuotaAllowed;
  40. } SYSTEM_DATA_DEFINITION, * PSYSTEM_DATA_DEFINITION;
  41. typedef struct _SYSTEM_COUNTER_DATA {
  42. PERF_COUNTER_BLOCK CounterBlock;
  43. DWORD ReadOperations;
  44. DWORD WriteOperations;
  45. DWORD OtherIOOperations;
  46. LONGLONG ReadBytes;
  47. LONGLONG WriteBytes;
  48. LONGLONG OtherIOBytes;
  49. DWORD ContextSwitches;
  50. DWORD SystemCalls;
  51. DWORD TotalReadWrites;
  52. LONGLONG SystemElapsedTime;
  53. DWORD ProcessorQueueLength;
  54. DWORD ProcessCount;
  55. DWORD ThreadCount;
  56. DWORD AlignmentFixups;
  57. DWORD ExceptionDispatches;
  58. DWORD FloatingPointEmulations;
  59. DWORD RegistryQuotaUsed;
  60. DWORD RegistryQuotaAllowed;
  61. } SYSTEM_COUNTER_DATA, * PSYSTEM_COUNTER_DATA;
  62. extern SYSTEM_DATA_DEFINITION SystemDataDefinition;
  63. #endif // _DATASYS_H_
  64.