0

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.

4
  • Win32_PerfFormattedData_PerfOS_Processor or Win32_PerfRawData_PerfOS_Processor class? Namespace ROOT\CIMV2 Commented Jun 13, 2016 at 18:59
  • Win32_PerfRawData_PerfOS_Processor class Commented Jun 14, 2016 at 5:29
  • Did you get what you were finding? Commented Jun 15, 2016 at 14:27
  • Not exactly, will be looking it later, I voted your answer because it gave me somewhat direction, and still looking for precise solution... Commented Jun 15, 2016 at 16:26

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.