Display sums of memory usage of "similar processes"

view full story

http://askubuntu.com – I want to have a whole list of all the processes with their memory usage. I want to sum up the memory usage of similar processes (i.e. processes with the same name or the same father process) How can I do that, e.g. with command line tools? (HowTos)