Leaked source code of windows server 2003
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.

61 lines
1.5 KiB

  1. #pragma namespace("\\\\.\\root")
  2. instance of __Namespace
  3. {
  4. Name = "perfmonScriptExample";
  5. };
  6. #pragma namespace("//./root/perfmonScriptExample")
  7. instance of __Win32Provider as $PMPInst
  8. {
  9. Name = "PerfProv";
  10. ClsId = "{f00b4404-f8f1-11ce-a5b6-00aa00680c3f}";
  11. };
  12. instance of __InstanceProviderRegistration
  13. {
  14. Provider = "__Win32Provider.Name=\"PerfProv\"";
  15. SupportsPut = FALSE;
  16. SupportsGet = TRUE;
  17. SupportsDelete = FALSE;
  18. SupportsEnumeration = TRUE;
  19. };
  20. [dynamic, provider("PerfProv"), ClassContext("local|Process")]
  21. class NTProcesses
  22. {
  23. [key]
  24. String Process;
  25. [PropertyContext("ID Process")]
  26. uint32 ID;
  27. [PropertyContext("Elapsed Time")]
  28. real32 Time;
  29. [PropertyContext("Handle Count")]
  30. uint32 Handles;
  31. [PropertyContext("Working Set")]
  32. uint32 WorkingSet;
  33. [PropertyContext("Working Set Peak")]
  34. uint32 WorkingSetPeak;
  35. [PropertyContext("Virtual Bytes")]
  36. uint32 VirtualBytes;
  37. [PropertyContext("Virtual Bytes Peak")]
  38. uint32 VirtualBytesPeak;
  39. [PropertyContext("Thread Count")]
  40. uint32 Threads;
  41. [PropertyContext("Priority Base")]
  42. uint32 Base;
  43. };
  44. [dynamic, provider("PerfProv"), ClassContext("local|Memory")]
  45. class NTMemory
  46. {
  47. [key]
  48. String Memory;
  49. [PropertyContext("Committed Bytes")]
  50. uint32 CommittedBytes;
  51. [PropertyContext("Page Reads/sec")]
  52. real32 PageReads;
  53. [PropertyContext("Page Faults/sec")]
  54. uint32 PageFaults;
  55. };