$ truss -aefo logfile
$ truss -rall -wall -p
make sure the logfile is stored where enough size is available.
echo "`psrinfo -p` socket(s)"
$ grep processor /proc/cpuinfo
prstat - report active process statistics
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)