plstree

display ls or ps output as directory or process trees
Log | Files | Refs | README

commit fee3d0d90ef36e4d28fbb36251f06dd4e7be492d
parent e3d30e6a69c7376cacf94f5cadc26d9a5655b5b3
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat,  9 Jun 2018 22:50:08 +0200

show the process memory size instead of the tty

The associated tty is specific for terminal interaciton so have been
removed.

Instead, the process memory size is added: this helps to have an
estimation of a whole process tree: if software are forking or start
other programs, it helps to have the memory footprint of _all_ of them
instead of just one.

Diffstat:
Mptree | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ptree b/ptree @@ -47,7 +47,7 @@ BEGIN { function list(entries) { - opt = "-o ppid,user,tty,pid,stat,comm,args" + opt = "-o ppid,user,vsz,pid,stat,comm,args" cmd = "exec ps -ax " opt " 2>/dev/null"; if (!(cmd | getline)) { cmd = "exec ps " opt