title: Calculating CPU usage of a program in Linux
body: <p>I want to calculate CPU usage % for a given program in Linux. Lets say I want to calculate how much amount of CPU is being used by oracle. When I do <code>ps -elf | grep oracle</code> I get multiple process. How can I get the cumulative result.</p>