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
htop
is a graphical solution in the shell - maybe this one helps
There you can search for it.
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
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.