How could I get the CPU utilization with time info of a process in linux? Basically I want to let my application run overnight. At the same time, I would like to monitor the CPU utilization during the period the application is run. 

I tried top | grep appName >& log, it does not seem to return me anything in the log. Could someone help me with this?

Thanks.