ReadThreadProfilingData function
Reads the specified profiling data associated with the thread.
Syntax
DWORD APIENTRY ReadThreadProfilingData( _In_ HANDLE PerformanceDataHandle, _In_ DWORD Flags, _Out_ PPERFORMANCE_DATA PerformanceData );
Parameters
- PerformanceDataHandle [in]
-
The handle that the EnableThreadProfiling function returned.
- Flags [in]
-
One or more of the following flags that specify the counter data to read. The flags must have been set when you called the EnableThreadProfiling function.
Value Meaning - READ_THREAD_PROFILING_FLAG_DISPATCHING
- 0x00000001
Get the thread profiling data.
- READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS
- 0x00000002
Get the hardware performance counters data.
- PerformanceData [out]
-
A PERFORMANCE_DATA structure that contains the thread profiling and hardware counter data.
Return value
Returns ERROR_SUCCESS if the call is successful; otherwise, a system error code (see Winerror.h).
Requirements
|
Minimum supported client | Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also