prstat - report active process statistics
statistics are sorted by cpu high -low
prstat -s cpu
or -u for a particular user
prstat -u oracle -s cpu
or top 5 cpu events
prstat -s cpu -n 5
prstat -T (total)
Other options available to prstat are:-T Report information about processes and tasks.
-a Report information about processes and users
-u Report only processes whose effective user ID
-v Report verbose process usage
-s key Sort output lines (that is, processes, lwps, or users) by key in descending order. Only one key can be used as an argument. There are five possible key values: cpu Sort by process CPU usage. This is the default. pri Sort by process priority. rss Sort by resident set size. size Sort by size of process image.
-n ntop[,nbottom] (comes with ntop or nbottom)