How do I measure separate CPU core usage for a process?

elang picture elang · Jul 27, 2010 · Viewed 201.4k times · Source

Is there any way to measure a specific process CPU usage by cores?

I know top is good for measuring the whole system's CPU usage by cores and taskset can provide information about which CPU core is allowed for the process to run on.

But how do I measure a specific process' CPU usage by CPU cores?

Answer

abdollar picture abdollar · Oct 11, 2010

You can still do this in top. While top is running, press '1' on your keyboard, it will then show CPU usage per core.

Limit the processes shown by having that specific process run under a specific user account and use Type 'u' to limit to that user