Mac app to show cumulative CPU usage?
You'll want sa and accton commands to dump accounting information to a file.

Here's an article that's a bit old. The perl script at the end works well - look out for * characters in the shell - those might need to get filtered or the input sanitized if the perl script doesn't show you totals.