I was wondering, if there is a program similar to time
, but instead of just printing out the time it took to execute the command, it also prints out the average CPU and Memory usage.
Alternatively a program which records the CPU and memory usage every couple of seconds and then writes it to a file would also work.
Any help is appreciated!
Thanks