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.

72 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATATHRD.h
  5. Abstract:
  6. Header file for the Windows NT Thread 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 _DATATHRD_H_
  16. #define _DATATHRD_H_
  17. //
  18. // This is the counter structure presently returned by NT. The
  19. // Performance Monitor MUST *NOT* USE THESE STRUCTURES!
  20. //
  21. typedef struct _THREAD_DATA_DEFINITION {
  22. PERF_OBJECT_TYPE ThreadObjectType;
  23. PERF_COUNTER_DEFINITION ProcessorTime;
  24. PERF_COUNTER_DEFINITION UserTime;
  25. PERF_COUNTER_DEFINITION KernelTime;
  26. PERF_COUNTER_DEFINITION ContextSwitches;
  27. PERF_COUNTER_DEFINITION ThreadElapsedTime;
  28. PERF_COUNTER_DEFINITION ThreadPriority;
  29. PERF_COUNTER_DEFINITION ThreadBasePriority;
  30. PERF_COUNTER_DEFINITION ThreadStartAddr;
  31. PERF_COUNTER_DEFINITION ThreadState;
  32. PERF_COUNTER_DEFINITION WaitReason;
  33. PERF_COUNTER_DEFINITION ProcessId;
  34. PERF_COUNTER_DEFINITION ThreadId;
  35. } THREAD_DATA_DEFINITION;
  36. typedef struct _THREAD_COUNTER_DATA {
  37. PERF_COUNTER_BLOCK CounterBlock;
  38. LONGLONG ProcessorTime;
  39. LONGLONG UserTime;
  40. LONGLONG KernelTime;
  41. DWORD ContextSwitches;
  42. LONGLONG ThreadElapsedTime;
  43. DWORD ThreadPriority;
  44. DWORD ThreadBasePriority;
  45. LPVOID ThreadStartAddr;
  46. DWORD ThreadState;
  47. DWORD WaitReason;
  48. DWORD ProcessId;
  49. DWORD ThreadId;
  50. } THREAD_COUNTER_DATA, * PTHREAD_COUNTER_DATA;
  51. extern THREAD_DATA_DEFINITION ThreadDataDefinition;
  52. #endif // _DATATHRD_H_
  53.