4

I know the command top, but top only shows the actual numbers for cpu and memory usage. But sometimes many numbers fluctuate very quickly, so it's hard to find out which processes really need much of cpu time.

Is there a way to display the accumulated cpu time during the last 15 Minutes or last 2 hours? Maybe along with maximum memory usage.

2 Answers2

2

Not exactly what you are looking for but the following command

 top -o TIME+

will get the top sorted by accumulated CPU time since the process started.

Paulo Tomé
  • 3,782
Aasiz
  • 121
0

It's not quite what you were looking for but the htop command will show you the amount of CPU time each process has used since the last reboot.

David King
  • 3,147
  • 9
  • 23