Monitoring top 10 processes, by %CPU ... I would like to take the top 10 processes by % CPU usage over contiguous
60 second intervals of and record it to a file in a format that is
amenable to post processing.
The command "topas -Pi 60" has the information I want but its formatted
with terminal escape sequences which make it difficult to process later.
Taking periodic samples with "ps aux" and sorting on %CPU is almost
there, but its on a sample basis which is not over the whole 60 second
period.
Does anyone have any solutions or better ideas?
TIA & Regards,
Alex. |