I was going to install a script on my web hosting account, and they said they were concerned that it would take too much CPU to run.
I know you can monitor the instantaneous use of a process with top
or ps
, but is there a way to log how much total CPU demand (not sure the units here) a script takes from start to finish?
I would be interested in a -nix solution for linux or OSX command-line.