mirror of
https://github.com/marlersoft/win32json
synced 2026-06-21 13:57:33 +00:00
100 lines
3.6 KiB
JSON
100 lines
3.6 KiB
JSON
{
|
|
|
|
"Constants":[
|
|
]
|
|
|
|
,"Types":[
|
|
{
|
|
"Name":"HARDWARE_COUNTER_TYPE"
|
|
,"Kind":"Enum"
|
|
,"Flags":false
|
|
,"Values":[
|
|
{"Name":"PMCCounter","Value":0}
|
|
,{"Name":"MaxHardwareCounterType","Value":1}
|
|
]
|
|
,"IntegerBase":"Int32"
|
|
}
|
|
,{
|
|
"Name":"HARDWARE_COUNTER_DATA"
|
|
,"Kind":"Struct"
|
|
,"Size":0
|
|
,"PackingSize":0
|
|
,"Fields":[
|
|
{"Name":"Type","Type":{"Kind":"ApiRef","Name":"HARDWARE_COUNTER_TYPE","TargetKind":"Default","Api":"HardwareCounterProfiling","Parents":[]},"Attrs":[]}
|
|
,{"Name":"Reserved","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
|
|
,{"Name":"Value","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]}
|
|
]
|
|
,"NestedTypes":[
|
|
]
|
|
}
|
|
,{
|
|
"Name":"PERFORMANCE_DATA"
|
|
,"Kind":"Struct"
|
|
,"Size":0
|
|
,"PackingSize":0
|
|
,"Fields":[
|
|
{"Name":"Size","Type":{"Kind":"Native","Name":"UInt16"},"Attrs":[]}
|
|
,{"Name":"Version","Type":{"Kind":"Native","Name":"Byte"},"Attrs":[]}
|
|
,{"Name":"HwCountersCount","Type":{"Kind":"Native","Name":"Byte"},"Attrs":[]}
|
|
,{"Name":"ContextSwitchCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
|
|
,{"Name":"WaitReasonBitMap","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]}
|
|
,{"Name":"CycleTime","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":[]}
|
|
,{"Name":"RetryCount","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
|
|
,{"Name":"Reserved","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":[]}
|
|
,{"Name":"HwCounters","Type":{"Kind":"Array","Shape":{"Size":16},"Child":{"Kind":"ApiRef","Name":"HARDWARE_COUNTER_DATA","TargetKind":"Default","Api":"HardwareCounterProfiling","Parents":[]}},"Attrs":[]}
|
|
]
|
|
,"NestedTypes":[
|
|
]
|
|
}
|
|
]
|
|
|
|
,"Functions":[
|
|
{
|
|
"Name":"EnableThreadProfiling"
|
|
,"SetLastError":false
|
|
,"DllImport":"KERNEL32"
|
|
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
|
|
,"Params":[
|
|
{"Name":"ThreadHandle","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"SystemServices","Parents":[]},"Attrs":["In"]}
|
|
,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
|
|
,{"Name":"HardwareCounters","Type":{"Kind":"Native","Name":"UInt64"},"Attrs":["In"]}
|
|
,{"Name":"PerformanceDataHandle","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"SystemServices","Parents":[]}},"Attrs":["Out"]}
|
|
]
|
|
}
|
|
,{
|
|
"Name":"DisableThreadProfiling"
|
|
,"SetLastError":false
|
|
,"DllImport":"KERNEL32"
|
|
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
|
|
,"Params":[
|
|
{"Name":"PerformanceDataHandle","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"SystemServices","Parents":[]},"Attrs":["In"]}
|
|
]
|
|
}
|
|
,{
|
|
"Name":"QueryThreadProfiling"
|
|
,"SetLastError":false
|
|
,"DllImport":"KERNEL32"
|
|
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
|
|
,"Params":[
|
|
{"Name":"ThreadHandle","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"SystemServices","Parents":[]},"Attrs":["In"]}
|
|
,{"Name":"Enabled","Type":{"Kind":"PointerTo","Child":{"Kind":"Native","Name":"Byte"}},"Attrs":["Out"]}
|
|
]
|
|
}
|
|
,{
|
|
"Name":"ReadThreadProfilingData"
|
|
,"SetLastError":false
|
|
,"DllImport":"KERNEL32"
|
|
,"ReturnType":{"Kind":"Native","Name":"UInt32"}
|
|
,"Params":[
|
|
{"Name":"PerformanceDataHandle","Type":{"Kind":"ApiRef","Name":"HANDLE","TargetKind":"Default","Api":"SystemServices","Parents":[]},"Attrs":["In"]}
|
|
,{"Name":"Flags","Type":{"Kind":"Native","Name":"UInt32"},"Attrs":["In"]}
|
|
,{"Name":"PerformanceData","Type":{"Kind":"PointerTo","Child":{"Kind":"ApiRef","Name":"PERFORMANCE_DATA","TargetKind":"Default","Api":"HardwareCounterProfiling","Parents":[]}},"Attrs":["Out"]}
|
|
]
|
|
}
|
|
]
|
|
|
|
,"UnicodeAliases":[
|
|
]
|
|
|
|
}
|