ishow the process memory size instead of the tty - plstree - ps and ls displayed as a tree Err bitreich.org 70
hgit clone git://bitreich.org/plstree git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/plstree URL:git://bitreich.org/plstree git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/plstree bitreich.org 70
1Log /scm/plstree/log.gph bitreich.org 70
1Files /scm/plstree/files.gph bitreich.org 70
1Refs /scm/plstree/refs.gph bitreich.org 70
1Tags /scm/plstree/tag bitreich.org 70
1README /scm/plstree/file/README.gph bitreich.org 70
i--- Err bitreich.org 70
1commit fee3d0d90ef36e4d28fbb36251f06dd4e7be492d /scm/plstree/commit/fee3d0d90ef36e4d28fbb36251f06dd4e7be492d.gph bitreich.org 70
1parent e3d30e6a69c7376cacf94f5cadc26d9a5655b5b3 /scm/plstree/commit/e3d30e6a69c7376cacf94f5cadc26d9a5655b5b3.gph bitreich.org 70
hAuthor: Josuah Demangeon <mail@josuah.net> URL:mailto:mail@josuah.net bitreich.org 70
iDate: Sat, 9 Jun 2018 22:50:08 +0200 Err bitreich.org 70
i Err bitreich.org 70
ishow the process memory size instead of the tty Err bitreich.org 70
i Err bitreich.org 70
iThe associated tty is specific for terminal interaciton so have been Err bitreich.org 70
iremoved. Err bitreich.org 70
i Err bitreich.org 70
iInstead, the process memory size is added: this helps to have an Err bitreich.org 70
iestimation of a whole process tree: if software are forking or start Err bitreich.org 70
iother programs, it helps to have the memory footprint of _all_ of them Err bitreich.org 70
iinstead of just one. Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M ptree | 2 +- Err bitreich.org 70
i Err bitreich.org 70
i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/ptree b/ptree /scm/plstree/file/ptree.gph bitreich.org 70
i@@ -47,7 +47,7 @@ BEGIN { Err bitreich.org 70
i Err bitreich.org 70
i function list(entries) Err bitreich.org 70
i { Err bitreich.org 70
i- opt = "-o ppid,user,tty,pid,stat,comm,args" Err bitreich.org 70
i+ opt = "-o ppid,user,vsz,pid,stat,comm,args" Err bitreich.org 70
i cmd = "exec ps -ax " opt " 2>/dev/null"; Err bitreich.org 70
i if (!(cmd | getline)) { Err bitreich.org 70
i cmd = "exec ps " opt Err bitreich.org 70
.
Response:
text/plain