winperf.py 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. # Generated by h2py from winperf.h
  2. PERF_DATA_VERSION = 1
  3. PERF_DATA_REVISION = 1
  4. PERF_NO_INSTANCES = -1
  5. PERF_SIZE_DWORD = 0x00000000
  6. PERF_SIZE_LARGE = 0x00000100
  7. PERF_SIZE_ZERO = 0x00000200
  8. PERF_SIZE_VARIABLE_LEN = 0x00000300
  9. PERF_TYPE_NUMBER = 0x00000000
  10. PERF_TYPE_COUNTER = 0x00000400
  11. PERF_TYPE_TEXT = 0x00000800
  12. PERF_TYPE_ZERO = 0x00000C00
  13. PERF_NUMBER_HEX = 0x00000000
  14. PERF_NUMBER_DECIMAL = 0x00010000
  15. PERF_NUMBER_DEC_1000 = 0x00020000
  16. PERF_COUNTER_VALUE = 0x00000000
  17. PERF_COUNTER_RATE = 0x00010000
  18. PERF_COUNTER_FRACTION = 0x00020000
  19. PERF_COUNTER_BASE = 0x00030000
  20. PERF_COUNTER_ELAPSED = 0x00040000
  21. PERF_COUNTER_QUEUELEN = 0x00050000
  22. PERF_COUNTER_HISTOGRAM = 0x00060000
  23. PERF_TEXT_UNICODE = 0x00000000
  24. PERF_TEXT_ASCII = 0x00010000
  25. PERF_TIMER_TICK = 0x00000000
  26. PERF_TIMER_100NS = 0x00100000
  27. PERF_OBJECT_TIMER = 0x00200000
  28. PERF_DELTA_COUNTER = 0x00400000
  29. PERF_DELTA_BASE = 0x00800000
  30. PERF_INVERSE_COUNTER = 0x01000000
  31. PERF_MULTI_COUNTER = 0x02000000
  32. PERF_DISPLAY_NO_SUFFIX = 0x00000000
  33. PERF_DISPLAY_PER_SEC = 0x10000000
  34. PERF_DISPLAY_PERCENT = 0x20000000
  35. PERF_DISPLAY_SECONDS = 0x30000000
  36. PERF_DISPLAY_NOSHOW = 0x40000000
  37. PERF_COUNTER_COUNTER = \
  38. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  39. PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_PER_SEC)
  40. PERF_COUNTER_TIMER = \
  41. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  42. PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT)
  43. PERF_COUNTER_QUEUELEN_TYPE = \
  44. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_QUEUELEN |\
  45. PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_NO_SUFFIX)
  46. PERF_COUNTER_LARGE_QUEUELEN_TYPE = \
  47. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_QUEUELEN |\
  48. PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_NO_SUFFIX)
  49. PERF_COUNTER_BULK_COUNT = \
  50. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  51. PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_PER_SEC)
  52. PERF_COUNTER_TEXT = \
  53. (PERF_SIZE_VARIABLE_LEN | PERF_TYPE_TEXT | PERF_TEXT_UNICODE |\
  54. PERF_DISPLAY_NO_SUFFIX)
  55. PERF_COUNTER_RAWCOUNT = \
  56. (PERF_SIZE_DWORD | PERF_TYPE_NUMBER | PERF_NUMBER_DECIMAL |\
  57. PERF_DISPLAY_NO_SUFFIX)
  58. PERF_COUNTER_LARGE_RAWCOUNT = \
  59. (PERF_SIZE_LARGE | PERF_TYPE_NUMBER | PERF_NUMBER_DECIMAL |\
  60. PERF_DISPLAY_NO_SUFFIX)
  61. PERF_COUNTER_RAWCOUNT_HEX = \
  62. (PERF_SIZE_DWORD | PERF_TYPE_NUMBER | PERF_NUMBER_HEX |\
  63. PERF_DISPLAY_NO_SUFFIX)
  64. PERF_COUNTER_LARGE_RAWCOUNT_HEX = \
  65. (PERF_SIZE_LARGE | PERF_TYPE_NUMBER | PERF_NUMBER_HEX |\
  66. PERF_DISPLAY_NO_SUFFIX)
  67. PERF_SAMPLE_FRACTION = \
  68. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION |\
  69. PERF_DELTA_COUNTER | PERF_DELTA_BASE | PERF_DISPLAY_PERCENT)
  70. PERF_SAMPLE_COUNTER = \
  71. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  72. PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_DISPLAY_NO_SUFFIX)
  73. PERF_COUNTER_NODATA = \
  74. (PERF_SIZE_ZERO | PERF_DISPLAY_NOSHOW)
  75. PERF_COUNTER_TIMER_INV = \
  76. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  77. PERF_TIMER_TICK | PERF_DELTA_COUNTER | PERF_INVERSE_COUNTER | \
  78. PERF_DISPLAY_PERCENT)
  79. PERF_SAMPLE_BASE = \
  80. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_BASE |\
  81. PERF_DISPLAY_NOSHOW |\
  82. 0x00000001)
  83. PERF_AVERAGE_TIMER = \
  84. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION |\
  85. PERF_DISPLAY_SECONDS)
  86. PERF_AVERAGE_BASE = \
  87. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_BASE |\
  88. PERF_DISPLAY_NOSHOW |\
  89. 0x00000002)
  90. PERF_AVERAGE_BULK = \
  91. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION |\
  92. PERF_DISPLAY_NOSHOW)
  93. PERF_100NSEC_TIMER = \
  94. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  95. PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT)
  96. PERF_100NSEC_TIMER_INV = \
  97. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  98. PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_INVERSE_COUNTER |\
  99. PERF_DISPLAY_PERCENT)
  100. PERF_COUNTER_MULTI_TIMER = \
  101. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  102. PERF_DELTA_COUNTER | PERF_TIMER_TICK | PERF_MULTI_COUNTER |\
  103. PERF_DISPLAY_PERCENT)
  104. PERF_COUNTER_MULTI_TIMER_INV = \
  105. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE |\
  106. PERF_DELTA_COUNTER | PERF_MULTI_COUNTER | PERF_TIMER_TICK |\
  107. PERF_INVERSE_COUNTER | PERF_DISPLAY_PERCENT)
  108. PERF_COUNTER_MULTI_BASE = \
  109. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_BASE |\
  110. PERF_MULTI_COUNTER | PERF_DISPLAY_NOSHOW)
  111. PERF_100NSEC_MULTI_TIMER = \
  112. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_DELTA_COUNTER |\
  113. PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_MULTI_COUNTER |\
  114. PERF_DISPLAY_PERCENT)
  115. PERF_100NSEC_MULTI_TIMER_INV = \
  116. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_DELTA_COUNTER |\
  117. PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_MULTI_COUNTER |\
  118. PERF_INVERSE_COUNTER | PERF_DISPLAY_PERCENT)
  119. PERF_RAW_FRACTION = \
  120. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION |\
  121. PERF_DISPLAY_PERCENT)
  122. PERF_RAW_BASE = \
  123. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_BASE |\
  124. PERF_DISPLAY_NOSHOW |\
  125. 0x00000003)
  126. PERF_ELAPSED_TIME = \
  127. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_ELAPSED |\
  128. PERF_OBJECT_TIMER | PERF_DISPLAY_SECONDS)
  129. PERF_COUNTER_HISTOGRAM_TYPE = -2147483648 # 0x80000000
  130. PERF_COUNTER_DELTA = \
  131. (PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_VALUE |\
  132. PERF_DELTA_COUNTER | PERF_DISPLAY_NO_SUFFIX)
  133. PERF_COUNTER_LARGE_DELTA = \
  134. (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_VALUE |\
  135. PERF_DELTA_COUNTER | PERF_DISPLAY_NO_SUFFIX)
  136. PERF_DETAIL_NOVICE = 100
  137. PERF_DETAIL_ADVANCED = 200
  138. PERF_DETAIL_EXPERT = 300
  139. PERF_DETAIL_WIZARD = 400
  140. PERF_NO_UNIQUE_ID = -1