cjbassi / gotop

A terminal based graphical activity monitor inspired by gtop and vtop
GNU Affero General Public License v3.0
7.37k stars 442 forks source link

Implement displaying processes hierarchically #26

Open evanfoster opened 6 years ago

evanfoster commented 6 years ago

One of my favorite features of ps/htop is the ability to display processes hierarchically. It's really nice to see the process tree. For example:

[root@machine ~]# ps aux -H
...snip...
root      1112  0.0  0.0  82468  1396 ?        Ss   Apr16   0:00   /usr/sbin/sshd
root     12834  1.0  0.2 142960  5144 ?        Ss   09:23   0:00     sshd: root@pts/0
root     12836  0.0  0.1 115384  2020 pts/0    Ss   09:23   0:00       -bash
root     12853  0.0  0.1 151192  1908 pts/0    R+   09:23   0:00         ps aux -H

htop has similar functionality.

I don't know how much of a pain this would be to implement, so please feel free to close this if it would be obnoxious to do. I really love this tool and I figured this feature might be useful to people.

whuang8 commented 5 years ago

Hitting t in htop to see the process tree is one of my favorite features. I use it everyday and would love to see the same functionality implemented in gotop!