Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
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.

winperf.py 5.8KB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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
  39. | PERF_TYPE_COUNTER
  40. | PERF_COUNTER_RATE
  41. | PERF_TIMER_TICK
  42. | PERF_DELTA_COUNTER
  43. | PERF_DISPLAY_PER_SEC
  44. )
  45. PERF_COUNTER_TIMER = (
  46. PERF_SIZE_LARGE
  47. | PERF_TYPE_COUNTER
  48. | PERF_COUNTER_RATE
  49. | PERF_TIMER_TICK
  50. | PERF_DELTA_COUNTER
  51. | PERF_DISPLAY_PERCENT
  52. )
  53. PERF_COUNTER_QUEUELEN_TYPE = (
  54. PERF_SIZE_DWORD
  55. | PERF_TYPE_COUNTER
  56. | PERF_COUNTER_QUEUELEN
  57. | PERF_TIMER_TICK
  58. | PERF_DELTA_COUNTER
  59. | PERF_DISPLAY_NO_SUFFIX
  60. )
  61. PERF_COUNTER_LARGE_QUEUELEN_TYPE = (
  62. PERF_SIZE_LARGE
  63. | PERF_TYPE_COUNTER
  64. | PERF_COUNTER_QUEUELEN
  65. | PERF_TIMER_TICK
  66. | PERF_DELTA_COUNTER
  67. | PERF_DISPLAY_NO_SUFFIX
  68. )
  69. PERF_COUNTER_BULK_COUNT = (
  70. PERF_SIZE_LARGE
  71. | PERF_TYPE_COUNTER
  72. | PERF_COUNTER_RATE
  73. | PERF_TIMER_TICK
  74. | PERF_DELTA_COUNTER
  75. | PERF_DISPLAY_PER_SEC
  76. )
  77. PERF_COUNTER_TEXT = (
  78. PERF_SIZE_VARIABLE_LEN | PERF_TYPE_TEXT | PERF_TEXT_UNICODE | PERF_DISPLAY_NO_SUFFIX
  79. )
  80. PERF_COUNTER_RAWCOUNT = (
  81. PERF_SIZE_DWORD | PERF_TYPE_NUMBER | PERF_NUMBER_DECIMAL | PERF_DISPLAY_NO_SUFFIX
  82. )
  83. PERF_COUNTER_LARGE_RAWCOUNT = (
  84. PERF_SIZE_LARGE | PERF_TYPE_NUMBER | PERF_NUMBER_DECIMAL | PERF_DISPLAY_NO_SUFFIX
  85. )
  86. PERF_COUNTER_RAWCOUNT_HEX = (
  87. PERF_SIZE_DWORD | PERF_TYPE_NUMBER | PERF_NUMBER_HEX | PERF_DISPLAY_NO_SUFFIX
  88. )
  89. PERF_COUNTER_LARGE_RAWCOUNT_HEX = (
  90. PERF_SIZE_LARGE | PERF_TYPE_NUMBER | PERF_NUMBER_HEX | PERF_DISPLAY_NO_SUFFIX
  91. )
  92. PERF_SAMPLE_FRACTION = (
  93. PERF_SIZE_DWORD
  94. | PERF_TYPE_COUNTER
  95. | PERF_COUNTER_FRACTION
  96. | PERF_DELTA_COUNTER
  97. | PERF_DELTA_BASE
  98. | PERF_DISPLAY_PERCENT
  99. )
  100. PERF_SAMPLE_COUNTER = (
  101. PERF_SIZE_DWORD
  102. | PERF_TYPE_COUNTER
  103. | PERF_COUNTER_RATE
  104. | PERF_TIMER_TICK
  105. | PERF_DELTA_COUNTER
  106. | PERF_DISPLAY_NO_SUFFIX
  107. )
  108. PERF_COUNTER_NODATA = PERF_SIZE_ZERO | PERF_DISPLAY_NOSHOW
  109. PERF_COUNTER_TIMER_INV = (
  110. PERF_SIZE_LARGE
  111. | PERF_TYPE_COUNTER
  112. | PERF_COUNTER_RATE
  113. | PERF_TIMER_TICK
  114. | PERF_DELTA_COUNTER
  115. | PERF_INVERSE_COUNTER
  116. | PERF_DISPLAY_PERCENT
  117. )
  118. PERF_SAMPLE_BASE = (
  119. PERF_SIZE_DWORD
  120. | PERF_TYPE_COUNTER
  121. | PERF_COUNTER_BASE
  122. | PERF_DISPLAY_NOSHOW
  123. | 0x00000001
  124. )
  125. PERF_AVERAGE_TIMER = (
  126. PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION | PERF_DISPLAY_SECONDS
  127. )
  128. PERF_AVERAGE_BASE = (
  129. PERF_SIZE_DWORD
  130. | PERF_TYPE_COUNTER
  131. | PERF_COUNTER_BASE
  132. | PERF_DISPLAY_NOSHOW
  133. | 0x00000002
  134. )
  135. PERF_AVERAGE_BULK = (
  136. PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION | PERF_DISPLAY_NOSHOW
  137. )
  138. PERF_100NSEC_TIMER = (
  139. PERF_SIZE_LARGE
  140. | PERF_TYPE_COUNTER
  141. | PERF_COUNTER_RATE
  142. | PERF_TIMER_100NS
  143. | PERF_DELTA_COUNTER
  144. | PERF_DISPLAY_PERCENT
  145. )
  146. PERF_100NSEC_TIMER_INV = (
  147. PERF_SIZE_LARGE
  148. | PERF_TYPE_COUNTER
  149. | PERF_COUNTER_RATE
  150. | PERF_TIMER_100NS
  151. | PERF_DELTA_COUNTER
  152. | PERF_INVERSE_COUNTER
  153. | PERF_DISPLAY_PERCENT
  154. )
  155. PERF_COUNTER_MULTI_TIMER = (
  156. PERF_SIZE_LARGE
  157. | PERF_TYPE_COUNTER
  158. | PERF_COUNTER_RATE
  159. | PERF_DELTA_COUNTER
  160. | PERF_TIMER_TICK
  161. | PERF_MULTI_COUNTER
  162. | PERF_DISPLAY_PERCENT
  163. )
  164. PERF_COUNTER_MULTI_TIMER_INV = (
  165. PERF_SIZE_LARGE
  166. | PERF_TYPE_COUNTER
  167. | PERF_COUNTER_RATE
  168. | PERF_DELTA_COUNTER
  169. | PERF_MULTI_COUNTER
  170. | PERF_TIMER_TICK
  171. | PERF_INVERSE_COUNTER
  172. | PERF_DISPLAY_PERCENT
  173. )
  174. PERF_COUNTER_MULTI_BASE = (
  175. PERF_SIZE_LARGE
  176. | PERF_TYPE_COUNTER
  177. | PERF_COUNTER_BASE
  178. | PERF_MULTI_COUNTER
  179. | PERF_DISPLAY_NOSHOW
  180. )
  181. PERF_100NSEC_MULTI_TIMER = (
  182. PERF_SIZE_LARGE
  183. | PERF_TYPE_COUNTER
  184. | PERF_DELTA_COUNTER
  185. | PERF_COUNTER_RATE
  186. | PERF_TIMER_100NS
  187. | PERF_MULTI_COUNTER
  188. | PERF_DISPLAY_PERCENT
  189. )
  190. PERF_100NSEC_MULTI_TIMER_INV = (
  191. PERF_SIZE_LARGE
  192. | PERF_TYPE_COUNTER
  193. | PERF_DELTA_COUNTER
  194. | PERF_COUNTER_RATE
  195. | PERF_TIMER_100NS
  196. | PERF_MULTI_COUNTER
  197. | PERF_INVERSE_COUNTER
  198. | PERF_DISPLAY_PERCENT
  199. )
  200. PERF_RAW_FRACTION = (
  201. PERF_SIZE_DWORD | PERF_TYPE_COUNTER | PERF_COUNTER_FRACTION | PERF_DISPLAY_PERCENT
  202. )
  203. PERF_RAW_BASE = (
  204. PERF_SIZE_DWORD
  205. | PERF_TYPE_COUNTER
  206. | PERF_COUNTER_BASE
  207. | PERF_DISPLAY_NOSHOW
  208. | 0x00000003
  209. )
  210. PERF_ELAPSED_TIME = (
  211. PERF_SIZE_LARGE
  212. | PERF_TYPE_COUNTER
  213. | PERF_COUNTER_ELAPSED
  214. | PERF_OBJECT_TIMER
  215. | PERF_DISPLAY_SECONDS
  216. )
  217. PERF_COUNTER_HISTOGRAM_TYPE = -2147483648 # 0x80000000
  218. PERF_COUNTER_DELTA = (
  219. PERF_SIZE_DWORD
  220. | PERF_TYPE_COUNTER
  221. | PERF_COUNTER_VALUE
  222. | PERF_DELTA_COUNTER
  223. | PERF_DISPLAY_NO_SUFFIX
  224. )
  225. PERF_COUNTER_LARGE_DELTA = (
  226. PERF_SIZE_LARGE
  227. | PERF_TYPE_COUNTER
  228. | PERF_COUNTER_VALUE
  229. | PERF_DELTA_COUNTER
  230. | PERF_DISPLAY_NO_SUFFIX
  231. )
  232. PERF_DETAIL_NOVICE = 100
  233. PERF_DETAIL_ADVANCED = 200
  234. PERF_DETAIL_EXPERT = 300
  235. PERF_DETAIL_WIZARD = 400
  236. PERF_NO_UNIQUE_ID = -1