I'm trying to collect some stats on how much time is spent 'waiting' for certain fairly short running tasks so I can justify purchase of some automated tools. I've written bash function wrappers around a few common tasks I do using the GNU time utility along the lines of this:

function something() {
  /usr/bin/time -o ~/wastedtime.log -a $path_to_original "$@"
}

I would now like to extend this a little further to a few more scripts & if possible catch the timings for other users on the same machine. I'm using a bash to syslog patch already.

What utilities exist to automatically record the execution times of commands & their arguments?

link|improve this question

60% accept rate
feedback

migrated from superuser.com Feb 10 '10 at 7:40

This question came from our site for computer enthusiasts and power users.

1 Answer

up vote 3 down vote accepted

Sounds like you want the GNU Accounting Utilities, specifically the "sa" command.

link|improve this answer
Looks great, thanks! – i.. Feb 10 '10 at 2:00
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.