G'Day
I've got some data I'm pulling out of some events with a search:
HOUR - Two digit hour of the day
PROCESS - Name of a running process
CPU_USAGE - The CPU the process used during the hour
What I want is a table with Hour in the first column, then the 10 processes with the highest CPU usage within that hour. Not the most popular process (which is what TOP seems to give me), but the ones with the highest CPU usage. So 240 rows it the finished table, 10 per hour.
I can get the top 10 in the first hour. I can get the 10 highest users, but I can't seem to get the highest 10 users within each hour.
Something like:
00 ProcessA 75%
00 ProcessB 60%
...
00 ProcessG 10%
01 ProcessC 90%
01 ProcessA 45%
01 ProcessG 40%
...
01 ProcessF 3%
02 ProcessB 80%
...
Any hints would be appreciated.
The second part is creating a chart to show the same...
↧