Sorted tree view in htop or alternative?
Looks like Glances should have what you need:
glances --tree
And then sort using commands m
,t
, i
etc. Full command reference
A 2019 update on this 2014 question that ranked highly when searching for this topic is that htop has this built in now, and in the current version 2.2.0, simply pressing t in the default view generates a process hierarchy.