I have to implement a code which populates the cpu core usage per core?
I was able to find information per processor but not for core.
Any WMI query or a command or an API which could fetch the usage of CPU cores.
Thanks in advance.
Win32_PerfRawData_PerfOS_Processor
won't be useful because it is uncooked and you have to cook the counters to get something meaningful which requires lots of computation or you can use:
Win32_PerfFormattedData_PerfOS_Processor which is already cooked.
Refer to : WMI counters
select * from Win32_PerfFormattedData_PerfOS_Processor where NOT name = '_Total'
will give you counters per CPU.
Win32_PerfFormattedData_PerfOS_ProcessororWin32_PerfRawData_PerfOS_Processorclass? NamespaceROOT\CIMV2Win32_PerfRawData_PerfOS_Processorclass