0

Is it possible to record google-chromes cpu and ram usage??

with terminal or other software that will do the same task ??

Thank you in advance

Levan
  • 10,690
  • 22
  • 67
  • 93
  • 1
    try starting with top, run it in a terminal. – Panther Aug 21 '14 at 22:45
  • yes but I want to record the processes – Levan Aug 21 '14 at 22:47
  • 1
    `ps -p -o %cpu,%mem,cmd` use the pid of google-chrome, pipe the output to a log file, and run the command as often as you wish, either manually or with a script. If you have a problem update you question with what you have tried and what is not working. – Panther Aug 21 '14 at 22:51
  • Thank you for the reply, but I have a small problem this does not record the stats. it shows stats only once – Levan Aug 21 '14 at 22:58
  • 1
    `ps -p -o %cpu,%mem,cmd >> $HOME/google-chome.log` – Panther Aug 21 '14 at 23:03
  • Thank you again but the problem still is there it does not logs stats it just only prints once. – Levan Aug 21 '14 at 23:05
  • 1
    http://askubuntu.com/questions/82616/how-to-execute-command-every-10-seconds-without-cron – Panther Aug 21 '14 at 23:10

1 Answers1

1

sudo apt-get install sysstat

man pidstat

Of possible additional interest, man sar, man mpstat

doug
  • 16,848
  • 2
  • 45
  • 60