#ifndef _NTPSAPI_H
/**
* The THREAD_PROFILING_INFORMATION structure contains profiling information and references to performance data.
*
* \sa https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-readthreadprofilingdata
*/
typedef struct _THREAD_PROFILING_INFORMATION
{
// To receive hardware performance counter data, set this parameter to a bitmask that identifies the hardware counters to collect.
// You can specify up to 16 performance counters. Each bit relates directly to the zero-based hardware counter index for the hardware
// performance counters that you configured. Set to zero if you are not collecting hardware counter data.
// If you set a bit for a hardware counter that has not been configured, the counter value that is read for that counter is zero.
ULONG64 HardwareCounters;
// To receive thread profiling data such as context switch count, set this parameter to THREAD_PROFILING_FLAG_DISPATCH.
ULONG Flags;
// Enable or disable thread profiling on the specified thread.
ULONG Enable;
// The PERFORMANCE_DATA structure that contains thread profiling and hardware counter data.
PTHREAD_PERFORMANCE_DATA PerformanceData;
} THREAD_PROFILING_INFORMATION, *PTHREAD_PROFILING_INFORMATION;
View code on GitHub
No description available.