2

Id like to measure the cpu usage during the execution of a command. If I type $ cp BigFile Location Id like to see how much this process used cpu power

René
  • 358
  • 1
  • 10

3 Answers3

2

I recently found a tool which measures time, cpu usage, memory usage all at once. Its called /usr/bin/time and should be installed via apt

René
  • 358
  • 1
  • 10
1

htop is a graphical solution in the shell - maybe this one helps

There you can search for it.

0

top command will show you memory and CPU usage,

you can pipe with grep

top | grep chrome  # for google chrome cpu and mem usage for and example
Hutch
  • 167
  • 2
  • 8