Get total %cpu,%mem for a process including all threads or sub processes?
For example rsync if you do the following, you get the %cpu,%mem for the parent process only. Where 9215 is pid of active rsync.
ps -p 9215 -o %cpu,%mem
How can one get the entire, total %cpu,%mem for the entire rsync process including its threads or sub processes?