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.

79 lines
2.4 KiB

  1. class Win32Perf
  2. {
  3. };
  4. class Win32_PerfRawData : Win32Perf {};
  5. class Win32_PerfFormattedData : Win32Perf {};
  6. /////////////////////////////////////////////////////////////////////
  7. [perfindex(4), dynamic, provider("NT5_GenericPerfProvider_V1"), singleton]
  8. class WinPerf_Memory : Win32_PerfRawData
  9. {
  10. [name] string Name;
  11. [perfindex(24)] uint32 AvailableBytes;
  12. [perfindex(26)] uint32 CommittedBytes;
  13. [perfindex(30)] uint32 CommitLimit;
  14. [perfindex(28)] uint32 PageFaultsSec;
  15. [perfindex(32)] uint32 WriteCopiesSec;
  16. [perfindex(34)] uint32 TransitionFaultsSec;
  17. [perfindex(36)] uint32 CacheFaultsSec;
  18. [perfindex(38)] uint32 DemandZeroFaultsSec;
  19. [perfindex(40)] uint32 PagesSec;
  20. [perfindex(822)] uint32 PagesInputSec;
  21. [perfindex(42)] uint32 PageReadsSec;
  22. [perfindex(48)] uint32 PagesOutputSec;
  23. [perfindex(50)] uint32 PageWritesSec;
  24. [perfindex(56)] uint32 PoolPagedBytes;
  25. [perfindex(58)] uint32 PoolNonpagedBytes;
  26. [perfindex(60)] uint32 PoolPagedAllocs;
  27. [perfindex(64)] uint32 PoolNonpagedAllocs;
  28. [perfindex(678)] uint32 FreeSystemPageTableEntries;
  29. [perfindex(818)] uint32 CacheBytes;
  30. [perfindex(820)] uint32 CacheBytesPeak;
  31. [perfindex(66)] uint32 PoolPagedResidentBytes;
  32. [perfindex(68)] uint32 SystemCodeTotalBytes;
  33. [perfindex(70)] uint32 SystemCodeResidentBytes;
  34. [perfindex(72)] uint32 SystemDriverTotalBytes;
  35. [perfindex(74)] uint32 SystemDriverResidentBytes;
  36. [perfindex(76)] uint32 SystemCacheResidentBytes;
  37. [perfindex(1406)] uint32 PercentCommittedBytesInUse;
  38. };
  39. // Multi-instance perf object type
  40. [perfindex(230), dynamic, provider("NT5_GenericPerfProvider_V1")]
  41. class WinPerf_Process : Win32_PerfRawData
  42. {
  43. [name, key] string Name;
  44. [perfindex(784)] uint32 IDProcess;
  45. [perfindex(6)] uint32 PercentProcessorTime;
  46. [perfindex(142)] uint32 PecentUserTime;
  47. [perfindex(144)] uint32 PercentPrivilegedTime;
  48. [perfindex(172)] uint32 VirtualBytesPeak;
  49. [perfindex(174)] uint32 VirtualBytes;
  50. [perfindex(28)] uint32 PageFaultsSec;
  51. [perfindex(178)] uint32 WorkingSetPeak;
  52. [perfindex(180)] uint32 WorkingSet;
  53. [perfindex(182)] uint32 PageFileBytesPeak;
  54. [perfindex(184)] uint32 PageFileBytes;
  55. [perfindex(186)] uint32 PrivateBytes;
  56. [perfindex(680)] uint32 ThreadCount;
  57. [perfindex(682)] uint32 PriorityBase;
  58. [perfindex(684)] uint32 ElapsedTime;
  59. [perfindex(56)] uint32 PoolPagedBytes;
  60. [perfindex(58)] uint32 PoolNonpagedBytes;
  61. [perfindex(952)] uint32 HandleCount;
  62. };